@@ -1542,7 +1542,7 @@ def from_records(
1542
1542
Parameters
1543
1543
----------
1544
1544
data : ndarray (structured dtype), list of tuples, dict, or DataFrame
1545
- index : string , list of fields, array-like
1545
+ index : str , list of fields, array-like
1546
1546
Field of array to use as the index, alternately a specific set of
1547
1547
input labels to use
1548
1548
exclude : sequence, default None
@@ -3461,7 +3461,7 @@ def insert(self, loc, column, value, allow_duplicates=False):
3461
3461
----------
3462
3462
loc : int
3463
3463
Insertion index. Must verify 0 <= loc <= len(columns)
3464
- column : string , number, or hashable object
3464
+ column : str , number, or hashable object
3465
3465
label of the inserted column
3466
3466
value : int, Series, or array-like
3467
3467
allow_duplicates : bool, optional
@@ -5197,7 +5197,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
5197
5197
5198
5198
Parameters
5199
5199
----------
5200
- i, j : int, string (can be mixed)
5200
+ i, j : int, str (can be mixed)
5201
5201
Level of index to be swapped. Can pass level name as string.
5202
5202
5203
5203
Returns
@@ -5723,12 +5723,12 @@ def update(
5723
5723
5724
5724
Parameters
5725
5725
----------%s
5726
- index : string or object, optional
5726
+ index : str or object, optional
5727
5727
Column to use to make new frame's index. If None, uses
5728
5728
existing index.
5729
- columns : string or object
5729
+ columns : str or object
5730
5730
Column to use to make new frame's columns.
5731
- values : string , object or a list of the previous, optional
5731
+ values : str , object or a list of the previous, optional
5732
5732
Column(s) to use for populating new frame's values. If not
5733
5733
specified, all remaining columns will be used and the result will
5734
5734
have hierarchically indexed columns.
@@ -6231,7 +6231,7 @@ def unstack(self, level=-1, fill_value=None):
6231
6231
6232
6232
Parameters
6233
6233
----------
6234
- level : int, string , or list of these, default -1 (last level)
6234
+ level : int, str , or list of these, default -1 (last level)
6235
6235
Level(s) of index to unstack, can pass level name
6236
6236
fill_value : replace NaN with this value if the unstack produces
6237
6237
missing values
@@ -6305,7 +6305,7 @@ def unstack(self, level=-1, fill_value=None):
6305
6305
``frame.columns.name`` or 'variable'.
6306
6306
value_name : scalar, default 'value'
6307
6307
Name to use for the 'value' column.
6308
- col_level : int or string , optional
6308
+ col_level : int or str , optional
6309
6309
If columns are a MultiIndex then use this level to melt.
6310
6310
6311
6311
Returns
0 commit comments