You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone.
I was trying to take data from one database and write it into another, using Polars, but I was getting this error, analyzing the trace it occurs when polars uses pandas behind the scene to convert their dataframe to pandas dataframe and use the to_sql command, so I reproduced what polars does.
Apparently the error only occurs when using a dataframe that has datetime columns.
Thanks in advance for your help.
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Hi everyone.
I was trying to take data from one database and write it into another, using Polars, but I was getting this error, analyzing the trace it occurs when polars uses pandas behind the scene to convert their dataframe to pandas dataframe and use the to_sql command, so I reproduced what polars does.
Apparently the error only occurs when using a dataframe that has datetime columns.
Thanks in advance for your help.
Here is the full trace error:
Expected Behavior
I expect to be able to write columns with datetime type into my database.
Installed Versions
INSTALLED VERSIONS
python : 3.9.13.final.0
python-bits : 64
pandas : 1.5.3
numpy : 1.21.5
pytz : 2022.1
dateutil : 2.8.2
setuptools : 63.4.1
pip : 22.2.2
Cython : 0.29.32
pytest : 7.1.2
hypothesis : None
sphinx : 5.0.2
blosc : None
feather : None
xlsxwriter : 3.0.3
lxml.etree : 4.9.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.31.1
pandas_datareader: None
bs4 : 4.11.1
bottleneck : 1.3.5
brotli :
fastparquet : None
fsspec : 2023.3.0
gcsfs : None
matplotlib : 3.5.2
numba : 0.55.1
numexpr : 2.8.3
odfpy : None
openpyxl : 3.0.10
pandas_gbq : None
pyarrow : 11.0.0
pyreadstat : None
pyxlsb : None
s3fs : 2023.3.0
scipy : 1.9.1
snappy :
sqlalchemy : 2.0.5.post1
tables : 3.6.1
tabulate : 0.8.10
xarray : 0.20.1
xlrd : 2.0.1
xlwt : None
zstandard : None
tzdata : None
The text was updated successfully, but these errors were encountered: