Guest User

Untitled

a guest
Feb 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. df = pd.read_csv('data.csv', chunksize=1000, low_memory=False)
  2. device_data = pd.concat(df, ignore_index=True)
  3.  
  4. iter_csv = pd.read_csv('data.csv', iterator=True, chunksize=1000)
  5. df = pd.concat([chunk[chunk['ID'] == 1234567] for chunk in iter_csv])
Add Comment
Please, Sign In to add comment