You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function is called when the user calls a pandas DataFrame object's method.
15
-
The pandas extension mechanism passes args and kwargs of original method call as it is applied to obj
12
+
"""Handle pandas extension call.
13
+
14
+
This function is called when the user calls
15
+
a pandas DataFrame object's method.
16
+
The pandas extension mechanism passes args and kwargs
17
+
of the original method call as it is applied to obj.
16
18
17
19
Our implementation uses the global variable `method_call_ctx_factory`.
18
20
19
21
`method_call_ctx_factory` can be either None or an abstract class.
20
22
21
-
When `method_call_ctx_factory` is None, the implementation calls the registered method with unmodified args and kwargs and returns underlying method result.
22
-
23
-
When `method_call_ctx_factory` is not None, `method_call_ctx_factory` is expected to refer to the function to create the context object.
24
-
The context object will be used to process inputs and outputs of `method` calls.
25
-
It is also possible that the context object method `handle_start_method_call`
23
+
When `method_call_ctx_factory` is None,
24
+
the implementation calls the registered method
25
+
with unmodified args and kwargs and returns underlying method result.
26
+
27
+
When `method_call_ctx_factory` is not None,
28
+
`method_call_ctx_factory` is expected to refer to
29
+
the function to create the context object.
30
+
The context object will be used to process
31
+
inputs and outputs of `method` calls.
32
+
It is also possible that
33
+
the context object method `handle_start_method_call`
26
34
will modify original args and kwargs before `method` call.
27
35
28
-
`method_call_ctx_factory` is a function that should have the following signature:
0 commit comments