@@ -600,7 +600,7 @@ def multiindex_year_month_day_dataframe_random_data():
600
600
"""
601
601
tdf = DataFrame (
602
602
np .random .default_rng (2 ).standard_normal ((100 , 4 )),
603
- columns = Index (list ("ABCD" ), dtype = object ),
603
+ columns = Index (list ("ABCD" )),
604
604
index = date_range ("2000-01-01" , periods = 100 , freq = "B" ),
605
605
)
606
606
ymd = tdf .groupby ([lambda x : x .year , lambda x : x .month , lambda x : x .day ]).sum ()
@@ -787,7 +787,7 @@ def string_series() -> Series:
787
787
"""
788
788
return Series (
789
789
np .arange (30 , dtype = np .float64 ) * 1.1 ,
790
- index = Index ([f"i_{ i } " for i in range (30 )], dtype = object ),
790
+ index = Index ([f"i_{ i } " for i in range (30 )]),
791
791
name = "series" ,
792
792
)
793
793
@@ -798,7 +798,7 @@ def object_series() -> Series:
798
798
Fixture for Series of dtype object with Index of unique strings
799
799
"""
800
800
data = [f"foo_{ i } " for i in range (30 )]
801
- index = Index ([f"bar_{ i } " for i in range (30 )], dtype = object )
801
+ index = Index ([f"bar_{ i } " for i in range (30 )])
802
802
return Series (data , index = index , name = "objects" , dtype = object )
803
803
804
804
@@ -890,8 +890,8 @@ def int_frame() -> DataFrame:
890
890
"""
891
891
return DataFrame (
892
892
np .ones ((30 , 4 ), dtype = np .int64 ),
893
- index = Index ([f"foo_{ i } " for i in range (30 )], dtype = object ),
894
- columns = Index (list ("ABCD" ), dtype = object ),
893
+ index = Index ([f"foo_{ i } " for i in range (30 )]),
894
+ columns = Index (list ("ABCD" )),
895
895
)
896
896
897
897
0 commit comments