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

Fix or suppress this future warning #572

Open
hellkite500 opened this issue Jul 7, 2022 · 0 comments
Open

Fix or suppress this future warning #572

hellkite500 opened this issue Jul 7, 2022 · 0 comments

Comments

@hellkite500
Copy link
Member

With pandas version 1.4.2, the following future warning is emmitted many times during execution, and should be addressed.

t-route/src/troute-routing/troute/routing/compute.py:1103: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  lastobs_df_sub.get("lastobs_discharge", pd.Series(index=lastobs_df_sub.index, name="Null")).values.astype("float32"),
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