Skip to content
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

Too many deprecation warnings #762

Open
CarlosEpia opened this issue Oct 12, 2024 · 0 comments
Open

Too many deprecation warnings #762

CarlosEpia opened this issue Oct 12, 2024 · 0 comments
Assignees

Comments

@CarlosEpia
Copy link
Contributor

CarlosEpia commented Oct 12, 2024

Using the current dev version, several deprecation warnings make it difficult to filter the real important messages. Currently, the next warnings are shown (one example of each kind) when using the default args values:

  • /home/carlos/git/eTraGo/etrago/tools/io.py:381: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '1' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
    df[c].fillna(
  • /home/carlos/env/etrago_624/lib/python3.10/site-packages/sklearn/base.py:486: UserWarning: X has feature names, but KMeans was fitted without feature names
    warnings.warn(
  • /home/carlos/env/etrago_624/lib/python3.10/site-packages/pypsa/clustering/spatial.py:255: FutureWarning: The provided callable <function min at 0x70a2744d0ee0> is currently using SeriesGroupBy.min. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "min" instead.
    aggregated = df.groupby(grouper).agg(static_strategies)
  • /home/carlos/git/eTraGo/etrago/cluster/spatial.py:278: FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do frame.T.groupby(...) without axis instead.
    pnl_df = df_agg.groupby(grouper, axis=1).sum()
  • /home/carlos/git/eTraGo/etrago/tools/utilities.py:290: FutureWarning: The geopandas.dataset module is deprecated and will be removed in GeoPandas 1.0. You can get the original 'naturalearth_lowres' data from https://www.naturalearthdata.com/downloads/110m-cultural-vectors/.
    path = gpd.datasets.get_path("naturalearth_lowres")
@CarlosEpia CarlosEpia self-assigned this Oct 12, 2024
CarlosEpia added a commit that referenced this issue Oct 23, 2024
…on_warnings

Features/#762 too many deprecation warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant