pandas.DataFrame.__dataframe__
pandas 3.1.1 · DataFrame · method
Expose tabular data through the dataframe interchange protocol.
Call syntax
DataFrame.__dataframe__(nan_as_null=False, allow_copy=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
nan_as_null |
Optional Positional or keyword Default False |
bool |
allow_copy |
Optional Positional or keyword Default True |
bool Choose whether a data copy is permitted when constructing a result. |
Returns
DataFrame interchange object