Skip to content

Commit 621ea78

Browse files
committed
Cleanups
1 parent 91c8699 commit 621ea78

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pandas/io/pytables.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
PeriodArray,
8888
)
8989
from pandas.core.arrays.datetimes import tz_to_dtype
90+
from pandas.core.arrays.string_ import BaseStringArray
9091
import pandas.core.common as com
9192
from pandas.core.computation.pytables import (
9293
PyTablesExpr,
@@ -3226,8 +3227,6 @@ def write_array(
32263227
# get the atom for this datatype
32273228
atom = _tables().Atom.from_dtype(value.dtype)
32283229

3229-
from pandas.core.arrays.string_ import BaseStringArray
3230-
32313230
if atom is not None:
32323231
# We only get here if self._filters is non-None and
32333232
# the Atom.from_dtype call succeeded

pandas/tests/io/pytables/test_put.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_put_compression_blosc(setup_path):
195195

196196

197197
def test_put_datetime_ser(setup_path, performance_warning, using_infer_string):
198-
# https://github.com/pandas-dev/pandas/pull/???
198+
# https://github.com/pandas-dev/pandas/pull/60663
199199
ser = Series(3 * [Timestamp("20010102").as_unit("ns")])
200200
with ensure_clean_store(setup_path) as store:
201201
store.put("ser", ser)
@@ -236,6 +236,7 @@ def test_put_mixed_type(setup_path, performance_warning, using_infer_string):
236236

237237

238238
def test_put_str_frame(setup_path, performance_warning, string_dtype_arguments):
239+
# https://github.com/pandas-dev/pandas/pull/60663
239240
dtype = pd.StringDtype(*string_dtype_arguments)
240241
df = DataFrame({"a": pd.array(["x", pd.NA, "y"], dtype=dtype)})
241242
with ensure_clean_store(setup_path) as store:
@@ -248,6 +249,7 @@ def test_put_str_frame(setup_path, performance_warning, string_dtype_arguments):
248249

249250

250251
def test_put_str_series(setup_path, performance_warning, string_dtype_arguments):
252+
# https://github.com/pandas-dev/pandas/pull/60663
251253
dtype = pd.StringDtype(*string_dtype_arguments)
252254
ser = Series(["x", pd.NA, "y"], dtype=dtype)
253255
with ensure_clean_store(setup_path) as store:

0 commit comments

Comments
 (0)