File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def setup(self):
47
47
self .values_all_nan = [np .nan ] * len (self .values )
48
48
self .values_all_int8 = np .ones (N , 'int8' )
49
49
self .categorical = pd .Categorical (self .values , self .categories )
50
+ self .series = pd .Series (self .categorical )
50
51
51
52
def time_regular (self ):
52
53
pd .Categorical (self .values , self .categories )
@@ -72,6 +73,9 @@ def time_from_codes_all_int8(self):
72
73
def time_existing_categorical (self ):
73
74
pd .Categorical (self .categorical )
74
75
76
+ def time_existing_series (self ):
77
+ pd .Categorical (self .series )
78
+
75
79
76
80
class ValueCounts (object ):
77
81
Original file line number Diff line number Diff line change @@ -1150,7 +1150,7 @@ Performance Improvements
1150
1150
- Improved performance of :func: `pd.concat ` for `Series ` objects (:issue: `23404 `)
1151
1151
- Improved performance of :meth: `DatetimeIndex.normalize ` and :meth: `Timestamp.normalize ` for timezone naive or UTC datetimes (:issue: `23634 `)
1152
1152
- Improved performance of :meth: `DatetimeIndex.tz_localize ` and various ``DatetimeIndex `` attributes with dateutil UTC timezone (:issue: `23772 `)
1153
- - Improved performance of :meth : `Categorical.__init__ ` (:issue: `23814 `)
1153
+ - Improved performance of :class : `Categorical ` constructor for ` Series ` objects (:issue: `23814 `)
1154
1154
1155
1155
.. _whatsnew_0240.docs :
1156
1156
You can’t perform that action at this time.
0 commit comments