You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interpolation using the akima method diverges from any reasonable expected result. Above I have some simple sample data, similar to my actual case, and other interpolators gives reasonable results, as demonstrated above. But, the akima method diverges away from the actual data.
I've also used the scipy akima interpolator explicitly above, and that works as expected. So, I would guess that there is a problem in how the data is being converted from pandas to scipy before Akima1DInterpolator is being called in pandas.
Expected Output
interplate(method='akima') should give results that are somewhat near to a linear interpolate, but instead they diverge.
Output of pd.show_versions()
[paste the output of pd.show_versions() here below this line]
Thanks. I probably should have included the chart as well.
I did another test that further shows that the problem is how the datetimeindex is being passed to scipy. By just changing the index like this, I can get the expected results:
Code Sample, a copy-pastable example if possible
Problem description
Interpolation using the akima method diverges from any reasonable expected result. Above I have some simple sample data, similar to my actual case, and other interpolators gives reasonable results, as demonstrated above. But, the akima method diverges away from the actual data.
I've also used the scipy akima interpolator explicitly above, and that works as expected. So, I would guess that there is a problem in how the data is being converted from pandas to scipy before Akima1DInterpolator is being called in pandas.
Expected Output
interplate(method='akima') should give results that are somewhat near to a linear interpolate, but instead they diverge.
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit: None
python: 2.7.15.final.0
python-bits: 64
OS: Darwin
OS-release: 17.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.23.0
pytest: None
pip: 10.0.1
setuptools: 39.2.0
Cython: 0.28.2
numpy: 1.14.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 5.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.5
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: 4.1.1
bs4: 4.5.3
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: