I am trying to replace Pandas with Polars in my code. I have one line code with pandas that returns a series where the ith element is a boolean that indicates if the ith row in df has missing values, see below
df.isnull().any(axis=1)
My current way to do this with polars is
df.select(pl.any([pl.col(c).isnull() for c in df.columns]))
which seems to be more complicated than the pandas code, I wonder if there is a simpler and more elegant way to do this.