Skip to content

Chapter 9 polars - #261

Closed
rinman57 wants to merge 6 commits into
data-8:mainfrom
dubois-ctds:chapter-9-polars
Closed

rinman57 wants to merge 6 commits into
data-8:mainfrom
dubois-ctds:chapter-9-polars

Conversation

@rinman57

Copy link
Copy Markdown

Chapter 9 polars conversions

- np.random.choice is replaced with .sample instead
- pl.int_range is used instead of np.arange
- concat returns a new Series. pets stays Cat, Dog until the name is assigned again.
- group_by doesn't sort automatically, so need .sort() again
The coin simulation has 20,000 values. The Monopoly simulation has 10,000.
- The bars use the Data 8 blue and gold colors.
- concat is used again
@rinman57 rinman57 closed this Oct 17, 2026
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