File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
84
84
-i " pandas.Timestamp.resolution PR02" \
85
85
-i " pandas.Timestamp.tzinfo GL08" \
86
86
-i " pandas.api.types.is_re_compilable PR07,SA01" \
87
- -i " pandas.api.types.pandas_dtype PR07,RT03,SA01" \
88
87
-i " pandas.arrays.ArrowExtensionArray PR07,SA01" \
89
88
-i " pandas.arrays.IntegerArray SA01" \
90
89
-i " pandas.arrays.IntervalArray.length SA01" \
Original file line number Diff line number Diff line change @@ -1785,16 +1785,22 @@ def pandas_dtype(dtype) -> DtypeObj:
1785
1785
1786
1786
Parameters
1787
1787
----------
1788
- dtype : object to be converted
1788
+ dtype : object
1789
+ The object to be converted into a dtype.
1789
1790
1790
1791
Returns
1791
1792
-------
1792
1793
np.dtype or a pandas dtype
1794
+ The converted dtype, which can be either a numpy dtype or a pandas dtype.
1793
1795
1794
1796
Raises
1795
1797
------
1796
1798
TypeError if not a dtype
1797
1799
1800
+ See Also
1801
+ --------
1802
+ api.types.is_dtype : Return true if the condition is satisfied for the arr_or_dtype.
1803
+
1798
1804
Examples
1799
1805
--------
1800
1806
>>> pd.api.types.pandas_dtype(int)
You can’t perform that action at this time.
0 commit comments