Skip to content

Commit b60c744

Browse files
committed
Update timestamp values in test_categorical_coerces_timestamp
1 parent 418dc4a commit b60c744

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ def test_categorical_coerces_numeric(all_parsers):
274274

275275
def test_categorical_coerces_timestamp(all_parsers):
276276
parser = all_parsers
277-
dtype = {"b": CategoricalDtype([Timestamp("2014")])}
277+
dtype = {"b": CategoricalDtype([Timestamp("2014-01-01 12:00:00")])}
278278

279-
data = "b\n2014-01-01\n2014-01-01"
280-
expected = DataFrame({"b": Categorical([Timestamp("2014")] * 2)})
279+
data = "b\n2014-01-01 12:00:00\n2014-01-01 12:00:00"
280+
expected = DataFrame({"b": Categorical([Timestamp("2014-01-01 12:00:00")] * 2)})
281281

282282
result = parser.read_csv(StringIO(data), dtype=dtype)
283283
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)