querying

how to imitate Pandas' index-based querying in Polars?

how to imitate Pandas' index-based querying in Polars? Question: Any idea what I can do to imitate the below pandas code using polars? Polars doesn’t have indexes like pandas so I couldn’t figure out what I can do . df = pd.DataFrame(data = ([21,123], [132,412], [23, 43]), columns = [‘c1’, ‘c2’]).set_index("c1") print(df.loc[[23, 132]]) and it …

Total answers: 1