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.
2 parents 4082c1a + 32be313 commit f88b423Copy full SHA for f88b423
pandas/tests/test_frame.py
@@ -3587,6 +3587,19 @@ def test_constructor_with_datetimes(self):
3587
expected.sort_index()
3588
assert_series_equal(result, expected)
3589
3590
+ # GH 7594
3591
+ # don't coerce tz-aware
3592
+ import pytz
3593
+ tz = pytz.timezone('US/Eastern')
3594
+ dt = tz.localize(datetime(2012, 1, 1))
3595
+ df = DataFrame({'End Date': dt}, index=[0])
3596
+ self.assertEqual(df.iat[0,0],dt)
3597
+ assert_series_equal(df.dtypes,Series({'End Date' : np.dtype('object') }))
3598
+
3599
+ df = DataFrame([{'End Date': dt}])
3600
3601
3602
3603
def test_constructor_for_list_with_dtypes(self):
3604
intname = np.dtype(np.int_).name
3605
floatname = np.dtype(np.float_).name
0 commit comments