Commit 5507452
authored
Test for pd.to_sql column error if data contains -np.inf (#34493)
* TST: pd.to_sql for dataframes with -np.inf (#34431)
* DOC: updated what's new (#34431)
* DOC: improved entry (#34431)
* TST: moved to _TestSQLAlchemy + added round trips
* TST: rename + add comment with GH issue #
* TST: rewrote using pytest.mark.parametrize for arg to DataFrame
* TST: removed underscore from _input
* DOC: added double backtick to np.inf & removed extraneous space
* TST: pd.to_sql for dataframes with -np.inf (#34431)
* DOC: updated what's new (#34431)
* DOC: improved entry (#34431)
* TST: moved to _TestSQLAlchemy + added round trips
* TST: rename + add comment with GH issue #
* TST: rewrote using pytest.mark.parametrize for arg to DataFrame
* TST: removed underscore from _input
* DOC: added double backtick to np.inf & removed extraneous space
* BUG: add catch for MySQL error with np.inf
* use regex for string match + add runtime import
* clean up regex
* TST: update to catch error for -np.inf with MySQL
* DOC: resolved conflict in whatsnew
* TST: update test_to_sql_with_neg_npinf
* fixed error handler syntax in SQLDatabase.to_sql
* fixed error handler syntax in SQLDatabase.to_sql
* TST: added an xfail test for npinf entries with mysql
* fixed imports
* added reference to GH issue
* fixed test_to_sql_with_npinf error catch
* fixed spelling error in message (can not -> cannot)
* DOC: added info re MySQL ValueError to whatsnew
* fixed variable name in to_sql
* replaced sqlalchemy's dialect.name with flavor
* fixed typo in test_to_sql-with-npinf1 parent c78c537 commit 5507452
File tree
3 files changed
+33
-1
lines changed- doc/source/whatsnew
- pandas
- io
- tests/io
3 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| 1047 | + | |
1047 | 1048 | | |
1048 | 1049 | | |
1049 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
1395 | 1408 | | |
1396 | 1409 | | |
1397 | 1410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
1816 | 1834 | | |
1817 | 1835 | | |
1818 | 1836 | | |
| |||
0 commit comments