I am using the below to extract data from database using cx_Oracle.connect for connection. I am having issue when the field I'm trying to extract from database is of datatype TIMESTAMP(6).
Value retrieved is 1625236451324000000 instead of 02-JUL-21 02.54.05.569000 PM
df_ora = pd.read_sql(sql_query_lpi, con=md_connection)
df_list=df_ora.values.tolist()
for columnname in df_list:
run_info = dict()
run_info['UPDATE_TS'] = columnname[0]
Any special formatting required in pandas to handle this ?
Thank you for any help/suggestion.