Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. data = pd.read_csv('hw_25000.csv', names = ['index', 'height_inches', 'weight_pounds'],header = 0 )
  2. data.head(20)
  3. print(data[data.height_sm >= 170 ][data.height_sm <180 ].head(20))
  4. sort = data[data.height_sm >= 170 ],[data.height_sm <180 ]
  5. data['sort'].head(20)
  6. #Выдает ошибку ValueError: Length of values does not match length of
  7. index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement