Skip to content

Commit e6c292e

Browse files
authored
DOC: Add RT03,SA01 for pandas.api.types.union_categoricals (#59319)
* Add RT03,SA01 for pandas.api.types.union_categoricals * Update after rerun the check
1 parent ebc60f2 commit e6c292e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
306306
-i "pandas.api.types.is_sparse SA01" \
307307
-i "pandas.api.types.is_timedelta64_ns_dtype SA01" \
308308
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
309-
-i "pandas.api.types.union_categoricals RT03,SA01" \
310309
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
311310
-i "pandas.arrays.BooleanArray SA01" \
312311
-i "pandas.arrays.DatetimeArray SA01" \

pandas/core/dtypes/concat.py

+6
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def union_categoricals(
190190
Returns
191191
-------
192192
Categorical
193+
The union of categories being combined.
193194
194195
Raises
195196
------
@@ -201,6 +202,11 @@ def union_categoricals(
201202
ValueError
202203
Empty list of categoricals passed
203204
205+
See Also
206+
--------
207+
CategoricalDtype : Type for categorical data with the categories and orderedness.
208+
Categorical : Represent a categorical variable in classic R / S-plus fashion.
209+
204210
Notes
205211
-----
206212
To learn more about categories, see `link

0 commit comments

Comments
 (0)