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

feat(python): Respect include_index for pandas series #19453

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

gab23r
Copy link
Contributor

@gab23r gab23r commented Oct 25, 2024

Fixes: #18859
For pd.Series I don't think it is a good idea to ignore the include_index argument if the index is the default index. Otherwise, the resulting type depends of the data.

@gab23r gab23r changed the title include index series feat(python): Respect include_index for pandas series Oct 25, 2024
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars and removed title needs formatting labels Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.96%. Comparing base (34b1dc5) to head (602c1a8).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19453      +/-   ##
==========================================
- Coverage   79.96%   79.96%   -0.01%     
==========================================
  Files        1534     1534              
  Lines      211037   211039       +2     
  Branches     2444     2445       +1     
==========================================
- Hits       168755   168753       -2     
- Misses      41727    41731       +4     
  Partials      555      555              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46
Copy link
Member

Thanks!

@ritchie46 ritchie46 merged commit e26a229 into pola-rs:main Oct 27, 2024
14 of 16 checks passed
@gab23r gab23r deleted the pd_series_include_index branch October 27, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

include_index ignored in pl.from_pandas(pd.Series)
2 participants