I have a Python program in which I want to upload a large .ndjson
. Is there a way to add a progress bar so that I know how much of the file is uploaded?
My code:
import json
import pandas as pd
df = map(json.loads, open('dump.ndjson'))
df = pd.DataFrame.from_records(records)
The above code uploads the file. The code is good because, when I split the file into 100 pieces I can upload one by one. I want to know if there is a way to add a progress bar so that I can upload the file at once and to see the progress of uploading.
PS: I'm not thinking about GUI, I have tried tqdm
progress bar. I was thinking something like that, so that I can see progress in my console.
Is there any way to achieve what I want?