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

Column type casting based on values #881

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

quant12345
Copy link
Contributor

@quant12345 quant12345 commented Oct 5, 2024

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Name of contributors Added to AUTHORS.rst
  • Description in RELEASE_NOTES.md Added

Description of PR

This PR removes the warnings:

FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas.

Before the changes I tried to print the column type before and after and everywhere it was float64 first and after setting the values ​​the column became of the object type. Since everywhere the values ​​imply a string value I set the object type.

tests to check:

pytest tests/test_core.py::test_init_df_with_illegal_values_raises
pytest tests/test_feature_validation.py
pytest tests/test_plotting.py::test_scatter_variables_with_meta_color
pytest tests/test_statistics.py::test_statistics
pytest tests/test_statistics.py::test_statistics_by_filter
pytest tests/test_statistics.py::test_statistics_with_rows

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

Successfully merging this pull request may close these issues.

1 participant