Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('11.txt', 'r') as f:
- lines = f.readlines()
- Stripped = [line.replace(' ', '') for line in lines]
- with open('11.txt', 'w') as f:
- f.writelines(Stripped)
- df = pd.read_csv('1.txt', sep='|', engine='python')
- df= df.iloc[3:0]
- df = df.drop(['Unnamed: 0'], axis = 1)
- print(df)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement