Skip to content

Commit e470c38

Browse files
Fix pytables import in test_complex.py
1 parent 08d4b91 commit e470c38

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/io/pytables/test_complex.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import numpy as np
22
import pytest
3+
import tables
4+
35

46
import pandas as pd
5-
import pandas._testing as tm
67
from pandas import (
78
DataFrame,
89
HDFStore,
910
Series,
1011
read_hdf,
1112
)
13+
import pandas._testing as tm
1214

1315

1416
def test_complex_fixed(tmp_path, setup_path):
@@ -108,7 +110,6 @@ def test_complex_mixed_table(tmp_path, setup_path):
108110
result = store.select("df", where="A>2")
109111
tm.assert_frame_equal(df.loc[df.A > 2], result)
110112

111-
112113
path = tmp_path / setup_path
113114
df.to_hdf(path, key="df", format="table")
114115
reread = read_hdf(path, "df")
@@ -163,7 +164,6 @@ def test_complex_indexing_error(tmp_path, setup_path):
163164
store.append("df", df, data_columns=["C"])
164165

165166

166-
167167
def test_complex_series_error(tmp_path, setup_path):
168168
complex128 = np.array([1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j])
169169
s = Series(complex128, index=list("abcd"))
@@ -200,4 +200,3 @@ def test_complex_append(tmp_path, setup_path):
200200
store.append("df", df)
201201
result = store.select("df")
202202
tm.assert_frame_equal(pd.concat([df, df], axis=0), result)
203-

0 commit comments

Comments
 (0)