Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- path_right = r"C:\Users\Max-13700kf\PycharmProjects\pythonProject\ex.csv"
- path_left = r"path to elagin left"
- elagin_right_df = pd.read_csv(path_right)
- # elagin_left_df = pd.read_csv(path_left)
- # 1
- print(elagin_right_df.head())
- # 2
- print(elagin_right_df.isnull().sum(), elagin_right_df.info, sep='\n')
- #3
- print(elagin_right_df.duplicated())
- #4
- print(elagin_right_df.n)
- #5
- elagin_right_df['education'] = None
- elagin_right_df['age'] = None
- print(elagin_right_df.sort_values(['education', 'age'], ascending=[False, False]).head(20))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement