Ask Your Question
0

Is the original row order preserved during the filter operation in Polars?

asked 2023-07-09 12:01:47 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-09 12:27:02 +0000

scrum gravatar image

Yes, by default the original row order is preserved during the filter operation in Polars. However, it is possible to modify the order of the resulting DataFrame using the sort_by() method.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-09 12:01:47 +0000

Seen: 8 times

Last updated: Jul 09 '23