Skip to content

Commit 4726d07

Browse files
committed
improve initialization of series
1 parent 58e7099 commit 4726d07

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/tests/io/pytables/test_retain_attributes.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
date_range,
99
errors,
1010
read_hdf,
11-
to_datetime,
1211
)
1312
from pandas.tests.io.pytables.common import (
1413
_maybe_remove,
@@ -96,10 +95,7 @@ def test_retain_index_attributes2(tmp_path, setup_path):
9695
def test_retain_datetime_attribute(tmp_path, setup_path):
9796
path = tmp_path / setup_path
9897
ser = Series(
99-
[
100-
to_datetime("2024-08-26 15:13:14"),
101-
to_datetime("2024-08-26 15:14:14"),
102-
],
98+
["2024-08-26 15:13:14", "2024-08-26 15:14:14"],
10399
dtype="datetime64[us, UTC]",
104100
)
105101
dataframe = DataFrame(ser)

0 commit comments

Comments
 (0)