Skip to content

Commit 6c56c88

Browse files
TST: Regression test added for Timedelta (#52748)
1 parent 38271a4 commit 6c56c88

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from pandas import (
2+
DataFrame,
3+
Timedelta,
4+
)
5+
6+
7+
def test_no_overflow_of_freq_and_time_in_dataframe():
8+
# GH 35665
9+
df = DataFrame(
10+
{
11+
"some_string": ["2222Y3"],
12+
"time": [Timedelta("0 days 00:00:00.990000")],
13+
}
14+
)
15+
for _, row in df.iterrows():
16+
assert row.dtype == "object"

0 commit comments

Comments
 (0)