I am trying to insert data into an oracle table, while in the process I am getting this error:
cx_Oracle.NotSupportedError: Python value of type NAType not supported
My script:
data = data_df.values.tolist()
sql = "insert into %s(%s) values(%s)" %(table_name, cols, values)
cursor.executemany(sql, data)
I have tried the solution given by the cx-Oracle documentation(https://cx-oracle.readthedocs.io/en/7.2.3/user_guide/sql_execution.html#inserting-nulls). But it returned this error:
cx_Oracle.DatabaseError: ORA-04043: object SDO_GEOMETRY does not exist
Because it's in production environment, that I can't do anything to oracle's settings. Is there any solution that can I insert null value into the oracle table?