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

👽 Set dtype of empty series #44

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

TillWattsight
Copy link
Contributor

I would like to clean up our logs in spotex a bit and we often get a the warning specified below when we try to read data for a time period where a curve does not contain data. As 'float64' is currently still the default dtype, I believe this proposed change should be safe and not have any effect beyond silencing the future warning.

- 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

To get rid of pandas FutureWarning about creating empty series with dtype object in the future
@TillWattsight TillWattsight merged commit 610df35 into development Nov 21, 2023
6 checks passed
@TillWattsight TillWattsight deleted the empty_ts_float64 branch November 21, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants