Skip to content

Instantly share code, notes, and snippets.

@moutasam
Last active August 1, 2022 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moutasam/90a211d122b4fef56b4656f76e08762d to your computer and use it in GitHub Desktop.
Save moutasam/90a211d122b4fef56b4656f76e08762d to your computer and use it in GitHub Desktop.
# reading the csv file and assigning it to a data frame ,
plus calculationg the time to read the file in seconds
import pandas as pd
import time
start = time.time()
df = pd.read_csv('NYPD_Complaint_Data_Historic.csv',low_memory=False)
end = time.time()
print("Read csv without chunks: ",(end-start),"sec")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment