コード例 #1
0
ファイル: test_constructors.py プロジェクト: zoehuang7/pandas
 def test_constructor_fromisocalendar(self):
     # GH 30395
     expected_timestamp = Timestamp("2000-01-03 00:00:00")
     expected_stdlib = datetime.fromisocalendar(2000, 1, 1)
     result = Timestamp.fromisocalendar(2000, 1, 1)
     assert result == expected_timestamp
     assert result == expected_stdlib
     assert isinstance(result, Timestamp)