@@ -548,7 +548,7 @@ def multiindex_year_month_day_dataframe_random_data():
548
548
"""
549
549
tdf = DataFrame (
550
550
np .random .default_rng (2 ).standard_normal ((100 , 4 )),
551
- columns = Index (list ("ABCD" ), dtype = object ),
551
+ columns = Index (list ("ABCD" )),
552
552
index = date_range ("2000-01-01" , periods = 100 , freq = "B" ),
553
553
)
554
554
ymd = tdf .groupby ([lambda x : x .year , lambda x : x .month , lambda x : x .day ]).sum ()
@@ -743,7 +743,7 @@ def string_series() -> Series:
743
743
"""
744
744
return Series (
745
745
np .arange (30 , dtype = np .float64 ) * 1.1 ,
746
- index = Index ([f"i_{ i } " for i in range (30 )], dtype = object ),
746
+ index = Index ([f"i_{ i } " for i in range (30 )]),
747
747
name = "series" ,
748
748
)
749
749
@@ -754,7 +754,7 @@ def object_series() -> Series:
754
754
Fixture for Series of dtype object with Index of unique strings
755
755
"""
756
756
data = [f"foo_{ i } " for i in range (30 )]
757
- index = Index ([f"bar_{ i } " for i in range (30 )], dtype = object )
757
+ index = Index ([f"bar_{ i } " for i in range (30 )])
758
758
return Series (data , index = index , name = "objects" , dtype = object )
759
759
760
760
@@ -846,8 +846,8 @@ def int_frame() -> DataFrame:
846
846
"""
847
847
return DataFrame (
848
848
np .ones ((30 , 4 ), dtype = np .int64 ),
849
- index = Index ([f"foo_{ i } " for i in range (30 )], dtype = object ),
850
- columns = Index (list ("ABCD" ), dtype = object ),
849
+ index = Index ([f"foo_{ i } " for i in range (30 )]),
850
+ columns = Index (list ("ABCD" )),
851
851
)
852
852
853
853
0 commit comments