Skip to content

Commit

Permalink
DOCS: Add 'See Also'and return value description for pandas.api.inter…
Browse files Browse the repository at this point in the history
…change.from_dataframe
  • Loading branch information
ivonastojanovic committed Aug 24, 2024
1 parent 224c6ff commit f5b5e95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.unique RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.view SA01" \
-i "pandas.api.interchange.from_dataframe RT03,SA01" \
-i "pandas.api.indexers.VariableOffsetWindowIndexer PR01,SA01" \
-i "pandas.api.types.is_any_real_numeric_dtype SA01" \
-i "pandas.api.types.is_bool PR01,SA01" \
-i "pandas.api.types.is_categorical_dtype SA01" \
-i "pandas.api.types.is_complex PR01,SA01" \
Expand Down
7 changes: 7 additions & 0 deletions pandas/core/interchange/from_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ def from_dataframe(df, allow_copy: bool = True) -> pd.DataFrame:
Returns
-------
pd.DataFrame
A pandas DataFrame built from the provided interchange
protocol object.
See Also
--------
_from_dataframe : Internal function to build a pandas DataFrame from
a DataFrameXchg.
Examples
--------
Expand Down

0 comments on commit f5b5e95

Please sign in to comment.