|
1 | 1 | import numpy as np |
2 | 2 | import pytest |
| 3 | +import tables |
| 4 | + |
3 | 5 |
|
4 | 6 | import pandas as pd |
5 | | -import pandas._testing as tm |
6 | 7 | from pandas import ( |
7 | 8 | DataFrame, |
8 | 9 | HDFStore, |
9 | 10 | Series, |
10 | 11 | read_hdf, |
11 | 12 | ) |
| 13 | +import pandas._testing as tm |
12 | 14 |
|
13 | 15 |
|
14 | 16 | def test_complex_fixed(tmp_path, setup_path): |
@@ -108,7 +110,6 @@ def test_complex_mixed_table(tmp_path, setup_path): |
108 | 110 | result = store.select("df", where="A>2") |
109 | 111 | tm.assert_frame_equal(df.loc[df.A > 2], result) |
110 | 112 |
|
111 | | - |
112 | 113 | path = tmp_path / setup_path |
113 | 114 | df.to_hdf(path, key="df", format="table") |
114 | 115 | reread = read_hdf(path, "df") |
@@ -163,7 +164,6 @@ def test_complex_indexing_error(tmp_path, setup_path): |
163 | 164 | store.append("df", df, data_columns=["C"]) |
164 | 165 |
|
165 | 166 |
|
166 | | - |
167 | 167 | def test_complex_series_error(tmp_path, setup_path): |
168 | 168 | complex128 = np.array([1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j]) |
169 | 169 | s = Series(complex128, index=list("abcd")) |
@@ -200,4 +200,3 @@ def test_complex_append(tmp_path, setup_path): |
200 | 200 | store.append("df", df) |
201 | 201 | result = store.select("df") |
202 | 202 | tm.assert_frame_equal(pd.concat([df, df], axis=0), result) |
203 | | - |
0 commit comments