I am reading stuff from a postgresql database.
query='SELECT * FROM a_table'
conn = psycopg2.connect(*args,**kwargs)
df=pd.read_sql(query,con=conn)
I get day is out of range for month
I have tried, the following that in my understanding would disable date parsing. However, I still get same error... How to run the query and deal with date errors in python-script space?
df=pd.read_sql(query,con=conn,parse_dates=[])
show datestyle ;in the command line clientpsql3) An example of the data returned byselect date_col from a_tableinpsql?psql.dayfirsthere read_sql.