We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 208a6ec commit dfbf1c7Copy full SHA for dfbf1c7
pandas/tests/io/test_sql.py
@@ -564,6 +564,13 @@ class DummyException(Exception):
564
res2 = self.pandasSQL.read_query("SELECT * FROM test_trans")
565
assert len(res2) == 1
566
567
+ def _to_sql_with_negative_npinf(self):
568
+ engine = sqlalchemy.create_engine("sqlite://", echo=False)
569
+
570
+ pd.DataFrame({"foo": [np.inf]}).to_sql("foobar1", engine)
571
+ pd.DataFrame({"foo": [-np.inf]}).to_sql("foobar2", engine)
572
+ pd.DataFrame({"foo": [-np.inf], "infe0": ["bar"]}).to_sql("foobar3", engine)
573
574
575
# -----------------------------------------------------------------------------
576
# -- Testing the public API
0 commit comments