Skip to content

Commit 21c63b8

Browse files
authored
Create 2891. Method Chaining.py
1 parent dde59c8 commit 21c63b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

2891. Method Chaining.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import pandas as pd
2+
3+
def findHeavyAnimals(animals: pd.DataFrame) -> pd.DataFrame:
4+
return animals[animals ['weight'] > 100].sort_values(by = ['weight'], ascending = False)[['name']]

0 commit comments

Comments
 (0)