In the following script, is there a way to find out how many "chunks" there are in total?
import pandas as pd
import numpy as np
data = pd.read_csv('data.txt', delimiter = ',', chunksize = 50000)
for chunk in data:
print(chunk)
Using len(chunk)
will only give me how many each one has.
Is there a way to do it without adding the iteration manually?