File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ def _register_accessor(
239239 name : str , cls : type [NDFrame | Index ]
240240) -> Callable [[TypeT ], TypeT ]:
241241 """
242- Register a custom accessor on objects.
242+ Register a custom accessor on objects.
243243
244244 Parameters
245245 ----------
@@ -260,14 +260,14 @@ def _register_accessor(
260260
261261 Notes
262262 -----
263- This function allows you to register a custom-defined accessor class for .
263+ This function allows you to register a custom-defined accessor class for pandas objects (DataFrame, Series, or Index) .
264264 The requirements for the accessor class are as follows:
265265
266266 * Must contain an init method that:
267267
268- * accepts a single object
268+ * accepts a single object
269269
270- * raises an AttributeError if the object does not have correctly
270+ * raises an AttributeError if the object does not have correctly
271271 matching inputs for the accessor
272272
273273 * Must contain a method for each access pattern.
@@ -277,9 +277,6 @@ def _register_accessor(
277277 * Accessible using the @property decorator if no additional arguments are
278278 needed.
279279
280- Examples
281- --------
282-
283280 """
284281
285282 def decorator (accessor : TypeT ) -> TypeT :
You can’t perform that action at this time.
0 commit comments