Problem with pandas DataFrame

Hello all, im newbie in mongo. I try to send DataFrame to my DB and have this error. What is the problem?

You can’t directly upload a Pandas Dataframe to Mongo, as Mongo don’t recognize them.
But you can upload a Dictionary!

dataframe.reset_index(inplace=True)
dictionary = dataframe.to_dict("records")
collection.insert_many(dictionary)

In general i dont upload Dataframe directrly, i upload a dictionary with Dataframes inside. Or im still convert all dataframes to dictionaries?