-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] pandas 2
compatibility issues
#4426
Labels
Comments
fkiraly
added a commit
that referenced
this issue
Apr 3, 2023
Reintroduces the `pandas` 2 bound given compatibility issues, see #4426
why was this not detected? It appears that some of the soft dependenies imply |
code to trigger/diagnose check failure: from sktime.transformations.series.exponent import ExponentTransformer
from sktime.utils._testing.panel import _make_panel_X
X = _make_panel_X()
t = ExponentTransformer()
t.fit_transform(X) |
fkiraly
added a commit
that referenced
this issue
Apr 10, 2023
Fixes #4426. This PR contains some tentative fixes for compatibility issues arising from the `pandas` 2 release on Apr 3: * fixes to index handling in `ForecastingHorizon.to_absolute` * fixes to many instances of using `ForecastingHorizon` as `pd.DataFrame` `index` in constructor or setter (`.index = ...`), this is no longer possible * writing to a `loc` index that does not exist no longer creates it but raises an exception - this was replaced by ensuring the right rows and columns are present before the write - `AutoETS`, `UnobservedComponents` * replace deprecated `is_integer` and `is_numeric` with recommended replacement calls to `pandas.api.types` * fixed old `from_nested_to_multi_index` utility producing `object` valued multiindex (instead of integer typed etc) * same for `_convert_tsf_to_hierarchical` utility in data loaders * replace deprecated `pandas.util.testing` imports with `pandas.testing` * #4435 * #4436 * replace in-place nested pandas operations with construction of new frame: `test_interpolate` * #4438 * replace single-index temporal slicing at lower granularity with slice-based slicing Relies on #4429 for testing. Does *not* change the dependency bounds.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Some problems with
pandas 2
as released on Apr 3:ForecastingHorizon
to_absolute
no longer seems to work withpandas 2
as released, due to incomaptibility with the index based logic into_absolute
pd.DataFrame
constructor no longer acceptsForecastingHorizon
asindex
orcolumns
argumentnested_univ
topd-multiindex
causespd.Index
indices which are not compatible with data input contractsDataFrame.agg
more restrictive and cause exceptionsloc
can no longer be used to write to index locations that do not existpandas.util.testing
module no longer exists, contents moved topandas.testing
Timestamp.freq
is now removed. Despite dealing with this already, there were still some instances insktime
using this.df["1950"]
on monthly data now raises error instead of returning all months in 1950Further problems to be mapped by #4430
The text was updated successfully, but these errors were encountered: