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): Add to_jax methods to support Jax Array export from DataFrame and Series #16294

Merged
merged 11 commits into from
May 19, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ where
}
}

/// Booleans are casted to 1 or 0.
/// Booleans are cast to 1 or 0.
impl BooleanChunked {
pub fn sum(&self) -> Option<IdxSize> {
Some(if self.is_empty() {
Expand Down
1 change: 1 addition & 0 deletions py-polars/docs/source/reference/dataframe/export.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Export DataFrame data to other formats:
DataFrame.to_dict
DataFrame.to_dicts
DataFrame.to_init_repr
DataFrame.to_jax
DataFrame.to_numpy
DataFrame.to_pandas
DataFrame.to_struct
Expand Down
2 changes: 2 additions & 0 deletions py-polars/docs/source/reference/series/export.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Export Series data to other formats:

Series.to_arrow
Series.to_frame
Series.to_jax
Series.to_list
Series.to_numpy
Series.to_pandas
Series.to_init_repr
Series.to_torch
Loading