Guest User

Untitled

a guest
Sep 24th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import pandas as pd
  2. from pandas import DataFrame as df
  3.  
  4. input_file = '.\Desktop\height-weight.csv'
  5. df = pd.read_csv(input_file)df.head()
  6.  
  7. df['height'] = df['Height(inches)'].map(lambda inches: round(inches * 0.83322 , 2))
  8. df.head()
Add Comment
Please, Sign In to add comment