File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33
44
55def download_file (file_url : str , local_file_path : pathlib .Path ) -> None :
6- """ Download a file from the URL and save it with the specified file name."" "
6+ "Download a file from the URL and save it with the specified file name."
77 response = requests .get (file_url )
88 if response :
99 local_file_path .write_bytes (response .content )
Original file line number Diff line number Diff line change 3636
3737print (lazy_query .collect ().select (pl .col (["price_per_sqft" , "year" ])))
3838
39- print (lazy_query .collect ().select (pl .col (["price_per_sqft" , "year" ])).describe ())
39+ print (
40+ lazy_query .collect ().select (pl .col (["price_per_sqft" , "year" ])).describe ()
41+ )
Original file line number Diff line number Diff line change 1414
1515lazy_car_query = (
1616 lazy_car_data .filter ((pl .col ("Model Year" ) >= 2018 ))
17- .filter (pl .col ("Electric Vehicle Type" ) == "Battery Electric Vehicle (BEV)" )
17+ .filter (
18+ pl .col ("Electric Vehicle Type" ) == "Battery Electric Vehicle (BEV)"
19+ )
1820 .groupby (["State" , "Make" ])
1921 .agg (
2022 pl .mean ("Electric Range" ).alias ("Average Electric Range" ),
You can’t perform that action at this time.
0 commit comments