|
240 | 240 | If 1 or 'columns': apply function to each row.""",
|
241 | 241 | "inplace": """
|
242 | 242 | inplace : bool, default False
|
243 |
| - If True, performs operation inplace and returns None.""", |
| 243 | + Whether to modify the DataFrame rather than creating a new one.""", |
244 | 244 | "optional_by": """
|
245 | 245 | by : str or list of str
|
246 | 246 | Name or list of names to sort by.
|
@@ -4071,8 +4071,7 @@ def query(self, expr: str, inplace: bool = False, **kwargs):
|
4071 | 4071 | Expanding functionality of backtick quoting for more than only spaces.
|
4072 | 4072 |
|
4073 | 4073 | inplace : bool
|
4074 |
| - Whether the query should modify the data in place or return |
4075 |
| - a modified copy. |
| 4074 | + Whether to modify the DataFrame rather than creating a new one. |
4076 | 4075 | **kwargs
|
4077 | 4076 | See the documentation for :func:`eval` for complete details
|
4078 | 4077 | on the keyword arguments accepted by :meth:`DataFrame.query`.
|
@@ -5175,8 +5174,8 @@ def rename(
|
5175 | 5174 | copy : bool, default True
|
5176 | 5175 | Also copy underlying data.
|
5177 | 5176 | inplace : bool, default False
|
5178 |
| - Whether to return a new DataFrame. If True then value of copy is |
5179 |
| - ignored. |
| 5177 | + Whether to modify the DataFrame rather than creating a new one. |
| 5178 | + If True then value of copy is ignored. |
5180 | 5179 | level : int or level name, default None
|
5181 | 5180 | In case of a MultiIndex, only rename labels in the specified
|
5182 | 5181 | level.
|
@@ -5607,7 +5606,7 @@ def set_index(
|
5607 | 5606 | append : bool, default False
|
5608 | 5607 | Whether to append columns to existing index.
|
5609 | 5608 | inplace : bool, default False
|
5610 |
| - If True, modifies the DataFrame in place (do not create a new object). |
| 5609 | + Whether to modify the DataFrame rather than creating a new one. |
5611 | 5610 | verify_integrity : bool, default False
|
5612 | 5611 | Check the new index for duplicates. Otherwise defer the check until
|
5613 | 5612 | necessary. Setting to False will improve the performance of this
|
@@ -5884,7 +5883,7 @@ def reset_index(
|
5884 | 5883 | Do not try to insert index into dataframe columns. This resets
|
5885 | 5884 | the index to the default integer index.
|
5886 | 5885 | inplace : bool, default False
|
5887 |
| - Modify the DataFrame in place (do not create a new object). |
| 5886 | + Whether to modify the DataFrame rather than creating a new one. |
5888 | 5887 | col_level : int or str, default 0
|
5889 | 5888 | If the columns have multiple levels, determines which level the
|
5890 | 5889 | labels are inserted into. By default it is inserted into the first
|
@@ -6171,7 +6170,7 @@ def dropna(
|
6171 | 6170 | Labels along other axis to consider, e.g. if you are dropping rows
|
6172 | 6171 | these would be a list of columns to include.
|
6173 | 6172 | inplace : bool, default False
|
6174 |
| - If True, do operation inplace and return None. |
| 6173 | + Whether to modify the DataFrame rather than creating a new one. |
6175 | 6174 |
|
6176 | 6175 | Returns
|
6177 | 6176 | -------
|
@@ -6316,7 +6315,7 @@ def drop_duplicates(
|
6316 | 6315 | - ``last`` : Drop duplicates except for the last occurrence.
|
6317 | 6316 | - False : Drop all duplicates.
|
6318 | 6317 | inplace : bool, default False
|
6319 |
| - Whether to drop duplicates in place or to return a copy. |
| 6318 | + Whether to modify the DataFrame rather than creating a new one. |
6320 | 6319 | ignore_index : bool, default False
|
6321 | 6320 | If True, the resulting axis will be labeled 0, 1, …, n - 1.
|
6322 | 6321 |
|
@@ -6690,7 +6689,7 @@ def sort_index( # type: ignore[override]
|
6690 | 6689 | Sort ascending vs. descending. When the index is a MultiIndex the
|
6691 | 6690 | sort direction can be controlled for each level individually.
|
6692 | 6691 | inplace : bool, default False
|
6693 |
| - If True, perform operation in-place. |
| 6692 | + Whether to modify the DataFrame rather than creating a new one. |
6694 | 6693 | kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, default 'quicksort'
|
6695 | 6694 | Choice of sorting algorithm. See also :func:`numpy.sort` for more
|
6696 | 6695 | information. `mergesort` and `stable` are the only stable algorithms. For
|
|
0 commit comments