Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
In [1]:
!pip3 install --user polars
In [4]:
import polars as pl
In [5]:
df = pl.read_csv(
"rank53_j0_j0.csv",
has_header=False,
dtypes={
"column_1": pl.UInt8,
"column_2": pl.UInt8,
"column_3": pl.UInt8,
"column_4": pl.UInt16,
"column_5": pl.Utf8,
},
null_values=[],
)
df.columns = ["i0", "i1", "i2", "i", "ranks"]
df
Out[5]:
In [6]:
df["ranks"].is_null().sum()
Out[6]:
In [8]:
(df["ranks"] == "NA").sum()
Out[8]:
In [9]:
(df["ranks"] == "").sum()
Out[9]:
In [ ]: