We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418dc4a commit b60c744Copy full SHA for b60c744
pandas/tests/io/parser/dtypes/test_categorical.py
@@ -274,10 +274,10 @@ def test_categorical_coerces_numeric(all_parsers):
274
275
def test_categorical_coerces_timestamp(all_parsers):
276
parser = all_parsers
277
- dtype = {"b": CategoricalDtype([Timestamp("2014")])}
+ dtype = {"b": CategoricalDtype([Timestamp("2014-01-01 12:00:00")])}
278
279
- data = "b\n2014-01-01\n2014-01-01"
280
- expected = DataFrame({"b": Categorical([Timestamp("2014")] * 2)})
+ data = "b\n2014-01-01 12:00:00\n2014-01-01 12:00:00"
+ expected = DataFrame({"b": Categorical([Timestamp("2014-01-01 12:00:00")] * 2)})
281
282
result = parser.read_csv(StringIO(data), dtype=dtype)
283
tm.assert_frame_equal(result, expected)
0 commit comments