Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from pandas import DataFrame as df
- input_file = '.\Desktop\height-weight.csv'
- df = pd.read_csv(input_file)df.head()
- df['height'] = df['Height(inches)'].map(lambda inches: round(inches * 0.83322 , 2))
- df.head()
Add Comment
Please, Sign In to add comment