2

In Pandas or Polars-Python, we can loc a value by using iloc loc or [1,2]. How could we do the same thing in Polars with Rust?

Hakase
  • 211
  • 1
  • 12

1 Answers1

0

Here is a guide explaining this in great detail: https://pola-rs.github.io/polars-book/user-guide/indexing.html

In short, Polars uses direct indexing in lieu of loc/iloc.

The guide lists a lot of helpful examples.

Anton Shpigunov
  • 184
  • 2
  • 8