File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,20 @@ class Construction:
1313 param_names = ["dtype" ]
1414
1515 def setup (self , dtype ):
16- self .data = tm .rands_array (nchars = 10 ** 5 , size = 10 )
16+ self .series_arr = tm .rands_array (nchars = 10 , size = 10 ** 5 )
17+ self .frame_arr = self .series_arr .reshape ((50_000 , 2 )).copy ()
1718
18- def time_construction (self , dtype ):
19- Series (self .data , dtype = dtype )
19+ def time_series_construction (self , dtype ):
20+ Series (self .series_arr , dtype = dtype )
2021
21- def peakmem_construction (self , dtype ):
22- Series (self .data , dtype = dtype )
22+ def peakmem_series_construction (self , dtype ):
23+ Series (self .series_arr , dtype = dtype )
24+
25+ def time_frame_construction (self , dtype ):
26+ DataFrame (self .frame_arr , dtype = dtype )
27+
28+ def peakmem_frame_construction (self , dtype ):
29+ DataFrame (self .frame_arr , dtype = dtype )
2330
2431
2532class Methods :
You can’t perform that action at this time.
0 commit comments