Skip to content

Commit 6c71670

Browse files
committed
ran black pandas
1 parent 871f859 commit 6c71670

File tree

3 files changed

+199
-122
lines changed

3 files changed

+199
-122
lines changed

pandas/tests/io/pytables/test_complex.py

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
# GH10447
3636

37+
3738
def test_complex_fixed(setup_path):
3839
df = DataFrame(
3940
np.random.rand(4, 5).astype(np.complex64),
@@ -56,6 +57,7 @@ def test_complex_fixed(setup_path):
5657
reread = read_hdf(path, "df")
5758
assert_frame_equal(df, reread)
5859

60+
5961
def test_complex_table(setup_path):
6062
df = DataFrame(
6163
np.random.rand(4, 5).astype(np.complex64),
@@ -79,6 +81,7 @@ def test_complex_table(setup_path):
7981
reread = read_hdf(path, "df")
8082
assert_frame_equal(df, reread)
8183

84+
8285
@xfail_non_writeable
8386
def test_complex_mixed_fixed(setup_path):
8487
complex64 = np.array(
@@ -102,6 +105,7 @@ def test_complex_mixed_fixed(setup_path):
102105
reread = read_hdf(path, "df")
103106
assert_frame_equal(df, reread)
104107

108+
105109
def test_complex_mixed_table(setup_path):
106110
complex64 = np.array(
107111
[1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j], dtype=np.complex64
@@ -130,6 +134,7 @@ def test_complex_mixed_table(setup_path):
130134
reread = read_hdf(path, "df")
131135
assert_frame_equal(df, reread)
132136

137+
133138
def test_complex_across_dimensions_fixed(setup_path):
134139
with catch_warnings(record=True):
135140
complex128 = np.array([1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j])
@@ -144,6 +149,7 @@ def test_complex_across_dimensions_fixed(setup_path):
144149
reread = read_hdf(path, "obj")
145150
comp(obj, reread)
146151

152+
147153
def test_complex_across_dimensions(setup_path):
148154
complex128 = np.array([1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j])
149155
s = Series(complex128, index=list("abcd"))
@@ -159,6 +165,7 @@ def test_complex_across_dimensions(setup_path):
159165
reread = read_hdf(path, "obj")
160166
comp(obj, reread)
161167

168+
162169
def test_complex_indexing_error(setup_path):
163170
complex128 = np.array(
164171
[1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j], dtype=np.complex128
@@ -171,6 +178,7 @@ def test_complex_indexing_error(setup_path):
171178
with pytest.raises(TypeError):
172179
store.append("df", df, data_columns=["C"])
173180

181+
174182
def test_complex_series_error(setup_path):
175183
complex128 = np.array([1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j])
176184
s = Series(complex128, index=list("abcd"))
@@ -184,6 +192,7 @@ def test_complex_series_error(setup_path):
184192
reread = read_hdf(path, "obj")
185193
tm.assert_series_equal(s, reread)
186194

195+
187196
def test_complex_append(setup_path):
188197
df = DataFrame(
189198
{"a": np.random.randn(100).astype(np.complex128), "b": np.random.randn(100)}

0 commit comments

Comments
 (0)