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

Features/#762 too many deprecation warnings #763

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

CarlosEpia
Copy link
Contributor

@CarlosEpia CarlosEpia commented Oct 12, 2024

This PR solves the issue #762. It can be merged once all these different deprecation warnings are addressed:

  • /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 16, 2024
@CarlosEpia CarlosEpia marked this pull request as ready for review October 18, 2024 08:13
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

Successfully merging this pull request may close these issues.

1 participant