Skip to content

migrate: convert numbers.ipynb from pandas to polars#10

Open
meshackamadi wants to merge 1 commit into
mainfrom
numeric-vector-conversion-to-polars
Open

migrate: convert numbers.ipynb from pandas to polars#10
meshackamadi wants to merge 1 commit into
mainfrom
numeric-vector-conversion-to-polars

Conversation

@meshackamadi

Copy link
Copy Markdown
Collaborator

Summary

Converts the numbers.ipynb chapter from pandas to polars, covering numeric operations, transformations, and summary statistics.

Changes

Code

  • pd.read_csv()pl.read_csv()
  • df.groupby()df.group_by()
  • .assign().with_columns()
  • .query().filter()
  • .apply().map_elements()
  • Row operations: axis=1pl.min_horizontal()
  • .cumsum().cum_sum()
  • .isnull().is_null()

Text

  • Updated prerequisites to mention polars
  • Updated documentation references
  • Changed function names to polars equivalents

Testing

  • All code blocks execute successfully
  • Numeric transformations produce expected results
  • Notebook renders without errors

Files Modified

  • numbers.ipynb

@meshackamadi
meshackamadi requested a review from ugohuche July 17, 2026 08:35
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