I have a dataframe with 4 million rows and 53 columns. I am trying to write the dataframe to an oracle table. see below a snipet of my code in python;
import pandas as pd
import cx_Oracle
conn = (--------------)
df = pd.read_sql(------)
#write to oracle table
df.to_sql(---)
This code has been running for over three days now with no end in sight. Please how can i get the progress of the insertion?
PS: My connection is working well and i already confirmed that the "to_sql()" is working cos i tried it on a dataframe with 10 rows and it worked.
Edited:
Thanks everyone, this link helped.
Did explicit conversion of the str
and my code executed in 26mins!