We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49097bd commit 59a6c3bCopy full SHA for 59a6c3b
pandas/tests/dtypes/test_concat.py
@@ -88,3 +88,14 @@ def test_concat_mismatched_categoricals_with_empty():
88
result = _concat.concat_compat([ser1._values, ser2._values])
89
expected = pd.concat([ser1, ser2])._values
90
tm.assert_categorical_equal(result, expected)
91
+
92
93
+@pytest.mark.parametrize("copy", [True, False])
94
+def test_concat_single_dataframe_tz_aware(copy):
95
+ # https://github.com/pandas-dev/pandas/issues/25257
96
+ df = pd.DataFrame(
97
+ {"timestamp": [pd.Timestamp("2020-04-08 09:00:00.709949+0000", tz="UTC")]}
98
+ )
99
+ expected = df.copy()
100
+ result = pd.concat([df], copy=copy)
101
+ tm.assert_frame_equal(result, expected)
0 commit comments