Skip to content

Commit

Permalink
Fixed Notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
eyrei123 committed Jan 2, 2025
1 parent 21c0a2e commit 8b61efc
Show file tree
Hide file tree
Showing 6 changed files with 433 additions and 0 deletions.
10 changes: 10 additions & 0 deletions polars-missing-data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
These files will allow you to work along with the [How to Deal With Missing Data in Polars](https://realpython.com/how-to-deal-with-polars-missing-data/) tutorial.

The files are:

tutorial_code.ipynb - Contains the code you see in the tutorial.
tips.parquet - Parquet file containing tips information.
sales_trends.csv - CSV file containing sales trend data.
ft_exercise.parquet - Parquet file containing data used in consolidation exercise.
ft_exercise_solution.csv - Parquet file containing solution to consolidation exercise.

Binary file added polars-missing-data/ft_exercise.parquet
Binary file not shown.
13 changes: 13 additions & 0 deletions polars-missing-data/ft_exercise_solution.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
episode,series,title,original_date
1,1,A Touch of Class,1975-09-19
2,1,The Builders,1975-09-26
3,1,The Wedding Party,1975-10-03
4,1,The Hotel Inspectors,1975-10-10
5,1,Gourmet Night,1975-10-17
6,1,The Germans,1975-10-24
7,2,Communication Problems,1979-02-19
8,2,The Psychiatrist,1979-02-26
9,2,Waldorf Salad,1979-03-05
10,2,The Kipper and the Corpse,1979-03-12
11,2,The Anniversary,1979-03-26
12,2,Basil the Rat,1979-10-25
6 changes: 6 additions & 0 deletions polars-missing-data/sales_trends.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
product,last_year,current_year,next_year
A,17,19,29.0
B,35,35,NaN
C,21,19,
D,42,50,-inf
E,23,25,inf
Binary file added polars-missing-data/tips.parquet
Binary file not shown.
Loading

0 comments on commit 8b61efc

Please sign in to comment.