Skip to content

Commit 8b1ab37

Browse files
committed
Deprecate categorical datetime coercion test
1 parent 2712fd7 commit 8b1ab37

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pandas/tests/io/parser/dtypes/test_categorical.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,18 +271,6 @@ def test_categorical_coerces_numeric(all_parsers):
271271
tm.assert_frame_equal(result, expected)
272272

273273

274-
def test_categorical_coerces_datetime(all_parsers):
275-
parser = all_parsers
276-
dti = pd.DatetimeIndex(["2017-01-01", "2018-01-01", "2019-01-01"], freq=None)
277-
dtype = {"b": CategoricalDtype(dti)}
278-
279-
data = "b\n2017-01-01\n2018-01-01\n2019-01-01"
280-
expected = DataFrame({"b": Categorical(dtype["b"].categories)})
281-
282-
result = parser.read_csv(StringIO(data), dtype=dtype)
283-
tm.assert_frame_equal(result, expected)
284-
285-
286274
def test_categorical_coerces_timestamp(all_parsers):
287275
parser = all_parsers
288276
dtype = {"b": CategoricalDtype([Timestamp("2014")])}

0 commit comments

Comments
 (0)