We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45aa7a5 commit 296addaCopy full SHA for 296adda
pandas/core/dtypes/common.py
@@ -1785,16 +1785,22 @@ def pandas_dtype(dtype) -> DtypeObj:
1785
1786
Parameters
1787
----------
1788
- dtype : object to be converted
+ dtype : object
1789
+ The object to be converted into a dtype.
1790
1791
Returns
1792
-------
1793
np.dtype or a pandas dtype
1794
+ The converted dtype, which can be either a numpy dtype or a pandas dtype.
1795
1796
Raises
1797
------
1798
TypeError if not a dtype
1799
1800
+ See Also
1801
+ ------
1802
+ api.types.is_dtype : Return true if the condition is satisfied for the arr_or_dtype.
1803
+
1804
Examples
1805
--------
1806
>>> pd.api.types.pandas_dtype(int)
0 commit comments