Python Jupyter中使用pd.read\u sql\u查询的溢出错误

Python Jupyter中使用pd.read\u sql\u查询的溢出错误,python,pandas,postgresql,sqlalchemy,Python,Pandas,Postgresql,Sqlalchemy,我正在用Python运行SQL查询。我相信引擎是在打印时创建的:“引擎(postgresql://username:***地址:5432/DBNAME)“ 我正在运行的代码是: df = pd.read_sql_query('SELECT column1, column2 FROM table WHERE year > 2018', engine) 我期待一个有两列的数据帧。相反,我收到一个错误,说明: 溢出错误 回溯(最近一次呼叫最后一次) 溢出错误:Python int太大,无法转换

我正在用Python运行SQL查询。我相信引擎是在打印时创建的:
“引擎(postgresql://username:***地址:5432/DBNAME)“

我正在运行的代码是:

df = pd.read_sql_query('SELECT column1, column2 FROM table WHERE year > 2018', engine)
我期待一个有两列的数据帧。相反,我收到一个错误,说明:

溢出错误
回溯(最近一次呼叫最后一次) 溢出错误:Python int太大,无法转换为C long

我查过了

import sys
sys.maxsize
输出:
9223372036854775807