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

Pandas FutureWarning: Default dtype for Empty Series will be 'object' #1355

Closed
R-Palazzo opened this issue Apr 4, 2023 · 0 comments · Fixed by #1373
Closed

Pandas FutureWarning: Default dtype for Empty Series will be 'object' #1355

R-Palazzo opened this issue Apr 4, 2023 · 0 comments · Fixed by #1373
Assignees
Labels
internal The issue doesn't change the API or functionality
Milestone

Comments

@R-Palazzo
Copy link
Contributor

Problem Description

Running the sdv/tests with pytests raised the following pandas 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.

Expected behavior

We want to modify the code to no longer get this warning.

Additional context

Here is given the code lines in sdv that raised the warning. Because this list may be incomplete, it would be nice to check after the correction that the warning is not in the warning summary of pytests.

Lines to be modified:

/tests/unit/single_table/test_base.py:839
/tests/unit/single_table/test_base.py:902
/tests/unit/constraints/test_base.py:891
/tests/unit/constraints/test_base.py:942
/tests/unit/single_table/test_base.py:865
/tests/unit/single_table/test_base.py:930
@R-Palazzo R-Palazzo added feature request Request for a new feature new Automatic label applied to new issues internal The issue doesn't change the API or functionality maintenance Tasks related to infrastructure & dependencies and removed feature request Request for a new feature labels Apr 4, 2023
@npatki npatki changed the title Pandas warning 1 Pandas FutureWarning: Default dtype for Empty Series will be 'object' Apr 4, 2023
@npatki npatki removed maintenance Tasks related to infrastructure & dependencies new Automatic label applied to new issues labels Apr 4, 2023
@R-Palazzo R-Palazzo mentioned this issue Apr 14, 2023
@amontanez24 amontanez24 added this to the 1.0.1 milestone Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal The issue doesn't change the API or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants