Advertisement
g96

Untitled

g96
Feb 23rd, 2022
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. df[columns] = df[columns].replace(',', '', regex=True).apply(pd.to_numeric) / 1000
  2. df.to_csv(directory + 'last.csv', index=False, header=True)
  3. print(len(df))
  4.  
  5. read= pd.read_csv('last.csv')
  6.  
  7. print(len(read))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement