How to check if all the data is inserted or not in mongodb cloud using python

Viewed 46

I am new MongoDB and trying to insert data into MongoDB cloud shared version using python as

df = pd.read_csv('FitBit data.csv')

data = df.to_dict()
db = client['mydatabase']
col = db['Data_fitbit']
col.insert_many([data])

i thing data inserted is way more less than the actual data. How check the number of rows inserted.

0 Answers
Related