Skip to content Skip to sidebar Skip to footer

Error: Import Csv File To Mongodb With Pymongo (pandas)

I have a little code that I want to use to import data. But I just can't specify the attributes for pd.read_csv. Made based on video on Youtube. Absolutely new to this, if you fix

Solution 1:

You are passing incorrect parameters to read_csv(). If you don't specify the parameter names they are passed in the order as per the documentation.

You can likely fix you issue with:

df = pd.read_csv(path, parse_dates=parse_dates, dtype=dtype, skiprows=skiprows)

Post a Comment for "Error: Import Csv File To Mongodb With Pymongo (pandas)"