main

2023/10/08

pandas tricks 3

 df.sort_values(["a","b","C", ascending=[True, False, True)

df.nlargest(10, 'a').nsmallest(5,"b)

No comments:

Post a Comment

How to Supercharge Your Python Classes with Class Methods

  How to Supercharge Your Python Classes with Class Methods | by Siavash Yasini | May, 2024 | Towards Data Science As we just mentioned, a c...