Advertisement
elena1234

agg method in Python

Jan 3rd, 2023 (edited)
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | Source Code | 0 0
  1. titanic.agg(['mean', 'std', 'min', 'max', 'median'])
  2. titanic.agg({'survived' : 'mean', 'age': ['min', 'max']})
  3.  
  4. listings.agg({'Last_Price': ['mean', 'std'],'Market_Cap': ['mean', 'std'], 'IPO_Year' : ['mean', 'std']})
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement