Skip to content

Commit d0cb5d3

Browse files
committed
Add RT03,SA01 for pandas.api.types.union_categoricals
1 parent 1fa5025 commit d0cb5d3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
307307
-i "pandas.api.types.is_string_dtype SA01" \
308308
-i "pandas.api.types.is_timedelta64_ns_dtype SA01" \
309309
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
310-
-i "pandas.api.types.union_categoricals RT03,SA01" \
311310
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
312311
-i "pandas.arrays.BooleanArray SA01" \
313312
-i "pandas.arrays.DatetimeArray SA01" \

pandas/core/dtypes/concat.py

Lines changed: 6 additions & 0 deletions
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
------
@@ -206,6 +207,11 @@ def union_categoricals(
206207
To learn more about categories, see `link
207208
<https://pandas.pydata.org/pandas-docs/stable/user_guide/categorical.html#unioning>`__
208209
210+
See Also
211+
--------
212+
CategoricalDtype : Type for categorical data with the categories and orderedness.
213+
Categorical : Represent a categorical variable in classic R / S-plus fashion.
214+
209215
Examples
210216
--------
211217
If you want to combine categoricals that do not necessarily have

0 commit comments

Comments
 (0)