-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Write problem in SQL database with sqlite3 #6843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you try this on master? I can't reproduce this. |
I tried it on master, and effectively the problem doesn't appear. But still present in my version... I checked it too with the pip installer to see if it is due to the package of my Archlinux distribution but the result is the same. If nobody has an idea, I will upgrade to the master version. Thanks for your help ! |
If you're feeling adventurous you can do |
@Acanthostega I have a very similar setup to you (Arch Linux, same kernel version, etc). I can repro this. |
This was fixed in 5c60f5c |
@Acanthostega Thanks for the report! |
I have a problem when writing some data into an SQL database in sqlite3 through the to_sql (and write_frame) method. I reduced the problem with only a few of the data, and can't reproduce with random data.
Let take the following csv file:
Then with pandas I read it, and put it into sqlite3 database, and read it again to see if they are identical:
The problem disappear if there is no column "stellarmass_r-z" which is a float64 in the data dataframe. It should be a dtype problem but can't point it out! I tried it on an other system with different version of sqlite3 so the problem isn't really the version... (3.7.9 and 3.8.4.3). No problem if I use to_hdf and to_csv.
INSTALLED VERSIONS
commit: None
python: 3.4.0.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.8-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: fr_FR.utf8
pandas: 0.13.1
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.13.3
statsmodels: None
IPython: 2.0.0
sphinx: 1.2.2
patsy: None
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.2
bottleneck: None
tables: 3.1.0
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
sqlalchemy: None
lxml: None
bs4: None
html5lib: None
bq: None
apiclient: None
The text was updated successfully, but these errors were encountered: