Environment :
- pandas 0.20.3
- python 2.7.13
Objective and Problem :
I'm using method pandas.read_sql() to retrieve the table from SQL that also contains values of invalidated timestamp (9999-12-30 23:00:00). But, the line of code throws the error 'Out of bounds nanosecond timestamp : 9999-12-30 23:00:00'.
How do i deal with parsing the timestamp in this case?
Background :
I have checked the pandas documentation for the solution. However, it seems to have no relevant support to configure the timestamp parser.
Code Snippet :
import pyodbc as pyo
import pandas as pd
db_conn = pyo.connect('DSN=MySQL Connection 3;',autocommit=True)
tbl_df = pd.read_sql('select * from orders',db_conn)
I expect to either parse the cells consisting of invalidated timestamps or to avoid parsing timestamps by default.