Advertisement
g96

Untitled

g96
Feb 22nd, 2022
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. with open('11.txt', 'r') as f:
  2.     lines = f.readlines()
  3.  
  4. Stripped = [line.replace(' ', '') for line in lines]
  5.  
  6. with open('11.txt', 'w') as f:
  7.     f.writelines(Stripped)
  8.  
  9. df =  pd.read_csv('1.txt', sep='|', engine='python')
  10.  
  11. df= df.iloc[3:0]
  12. df = df.drop(['Unnamed: 0'], axis = 1)
  13.  
  14. print(df)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement