You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pandas-read-csv.py 318B

123456789101112
  1. import time
  2. import sys
  3. import pandas as pd
  4. start = time.time()
  5. path = sys.argv[1]
  6. df = pd.read_csv(path, low_memory=False)
  7. print('parsed csv file with {:,} rows in {:.1f}sec using pd.read_csv (pandas version = {})'.format(len(df), time.time()-start, pd.__version__))
  8. print()
  9. print(df.info())
  10. print()
  11. print(df.head())