so bascially i changed panda.frame to polars.frame for better speed in yolov5 but when i run the code, it works fine till some point (i dont exactly know when e
How does one convert a column of i64 epoch strings into dates in polars? I've got a column of i64 representing seconds since epoch and I'd like to parse them in
In Polars, the select and with_column methods broadcast any scalars that they get, including literals: import polars as pl df.with_column(pl.lit(1).alias("y"))
How does one read a csv into a polar DataFrame and parse one of the columns as a datetime? Alternatively, how does one convert a column to a pl.datetime?
If I have a single column, I can sort that column within groups using the over method. For example, import polars as pl df = pl.DataFrame({'group': [2,2,1,1,2,
Seems like Polars is not a fan of Pandas indexes. There are some things that you can do with indexes that I don't know how to do in Polars. For example say I ha
Seems like Polars is not a fan of Pandas indexes. There are some things that you can do with indexes that I don't know how to do in Polars. For example say I ha
I need to do some somewhat complicated processing for each group after grouping. in pandas, it can be writed as follows: for i,g in df.groupby(['id','sid']):
Can somebody help me with the preferred way to set a categorical value for some rows of a polars data frame (based on a condition)? Right now I came up with a s