|
212 | 212 | "axes": "keywords for axes",
|
213 | 213 | "klass": "Series/DataFrame",
|
214 | 214 | "axes_single_arg": "{0 or 'index'} for Series, {0 or 'index', 1 or 'columns'} for DataFrame", # noqa:E501
|
215 |
| - "args_transpose": "axes to permute (int or label for object)", |
216 | 215 | "inplace": """
|
217 | 216 | inplace : bool, default False
|
218 | 217 | If True, performs operation inplace and returns None.""",
|
219 | 218 | "optional_by": """
|
220 | 219 | by : str or list of str
|
221 | 220 | Name or list of names to sort by""",
|
222 |
| - "replace_iloc": """ |
223 |
| - This differs from updating with ``.loc`` or ``.iloc``, which require |
224 |
| - you to specify a location to update with some value.""", |
225 | 221 | }
|
226 | 222 |
|
227 | 223 |
|
@@ -264,22 +260,11 @@ class NDFrame(PandasObject, indexing.IndexingMixin):
|
264 | 260 | # ----------------------------------------------------------------------
|
265 | 261 | # Constructors
|
266 | 262 |
|
267 |
| - def __init__( |
268 |
| - self, |
269 |
| - data: Manager, |
270 |
| - copy: bool_t = False, |
271 |
| - attrs: Mapping[Hashable, Any] | None = None, |
272 |
| - ) -> None: |
273 |
| - # copy kwarg is retained for mypy compat, is not used |
274 |
| - |
| 263 | + def __init__(self, data: Manager) -> None: |
275 | 264 | object.__setattr__(self, "_is_copy", None)
|
276 | 265 | object.__setattr__(self, "_mgr", data)
|
277 | 266 | object.__setattr__(self, "_item_cache", {})
|
278 |
| - if attrs is None: |
279 |
| - attrs = {} |
280 |
| - else: |
281 |
| - attrs = dict(attrs) |
282 |
| - object.__setattr__(self, "_attrs", attrs) |
| 267 | + object.__setattr__(self, "_attrs", {}) |
283 | 268 | object.__setattr__(self, "_flags", Flags(self, allows_duplicate_labels=True))
|
284 | 269 |
|
285 | 270 | @final
|
@@ -313,6 +298,7 @@ def _init_mgr(
|
313 | 298 | mgr = mgr.astype(dtype=dtype)
|
314 | 299 | return mgr
|
315 | 300 |
|
| 301 | + @final |
316 | 302 | def _as_manager(self, typ: str, copy: bool_t = True) -> Self:
|
317 | 303 | """
|
318 | 304 | Private helper function to create a DataFrame with specific manager.
|
@@ -7314,7 +7300,6 @@ def replace(
|
7314 | 7300 | _shared_docs["replace"],
|
7315 | 7301 | klass=_shared_doc_kwargs["klass"],
|
7316 | 7302 | inplace=_shared_doc_kwargs["inplace"],
|
7317 |
| - replace_iloc=_shared_doc_kwargs["replace_iloc"], |
7318 | 7303 | )
|
7319 | 7304 | def replace(
|
7320 | 7305 | self,
|
|
0 commit comments