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

fix(python): set null_count on categorical append #11914

Merged
merged 2 commits into from
Oct 21, 2023
Merged

fix(python): set null_count on categorical append #11914

merged 2 commits into from
Oct 21, 2023

Conversation

ritchie46
Copy link
Member

fixes #11910

@ritchie46 ritchie46 requested a review from orlp as a code owner October 21, 2023 06:03
@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels Oct 21, 2023
@@ -7,7 +7,7 @@ use crate::using_string_cache;

impl From<&CategoricalChunked> for DictionaryArray<u32> {
fn from(ca: &CategoricalChunked) -> Self {
let keys = ca.logical().rechunk();
let keys = ca.physical().rechunk();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive by, gives you access to the physical type, not the logical.

@ritchie46 ritchie46 merged commit 6e8ce9c into main Oct 21, 2023
24 checks passed
@ritchie46 ritchie46 deleted the cat branch October 21, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Series.null_count() for Categorical types only considers the first chunk
1 participant