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

RuntimeWarning: invalid value encountered in cast. #1369

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

RuntimeWarning: invalid value encountered in cast. #1369

R-Palazzo opened this issue Apr 11, 2023 · 0 comments · Fixed by #1380
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 warning:

RuntimeWarning: invalid value encountered in cast

Expected behavior

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

Additional context

This is a pandas warning raised two times from :

pandas/core/arrays/timedeltas.py:908
pandas/core/arrays/timedeltas.py:912

Here is given the code line 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.

Line where the warning is detected

tests/integration/single_table/test_copulas.py:158
@R-Palazzo R-Palazzo added internal The issue doesn't change the API or functionality new Automatic label applied to new issues labels Apr 11, 2023
@npatki npatki removed the new Automatic label applied to new issues label Apr 12, 2023
@amontanez24 amontanez24 self-assigned this May 9, 2023
@amontanez24 amontanez24 added this to the 1.1.0 milestone May 9, 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