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

Deprecated methods in wave_resource.py #393

Open
kbrunik opened this issue Oct 25, 2024 · 0 comments
Open

Deprecated methods in wave_resource.py #393

kbrunik opened this issue Oct 25, 2024 · 0 comments
Labels
medium priority Nice to have on the stove but not necessarily the front burner

Comments

@kbrunik
Copy link
Collaborator

kbrunik commented Oct 25, 2024

/HOPP/hopp/simulation/technologies/resource/wave_resource.py:102): FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead.
  data_df = df.resample("H").mean()


/HOPP/hopp/simulation/technologies/resource/wave_resource.py:110](https://file+.vscode-resource.vscode-cdn.net/Users/kbrunik/github/HOPP/hopp/simulation/technologies/resource/wave_resource.py:110): FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead.
  missing_time = pd.date_range(last_hour + pd.Timedelta(hours=1),periods=missing_hours, freq='H')


/HOPP/hopp/simulation/technologies/resource/wave_resource.py:112](https://file+.vscode-resource.vscode-cdn.net/Users/kbrunik/github/HOPP/hopp/simulation/technologies/resource/wave_resource.py:112): FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
  data_df = pd.concat([data_df, missing_rows]).sort_index()


/HOPP/hopp/simulation/technologies/resource/wave_resource.py:113](https://file+.vscode-resource.vscode-cdn.net/Users/kbrunik/github/HOPP/hopp/simulation/technologies/resource/wave_resource.py:113): FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.
  data_df = data_df.fillna(method='ffill') # forward fill
@kbrunik kbrunik added the medium priority Nice to have on the stove but not necessarily the front burner label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium priority Nice to have on the stove but not necessarily the front burner
Projects
None yet
Development

No branches or pull requests

1 participant