Skip to content

Commit

Permalink
fix(dtypes.py): correction at function is_numeric docstring (#1100)
Browse files Browse the repository at this point in the history
* fix(dtypes.py): correction at function is_numeric docstring

Signed-off-by: Henrique Branco <henrique.ajnbranco@gmail.com>

* revert import change

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>

---------

Signed-off-by: Henrique Branco <henrique.ajnbranco@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Co-authored-by: Niels Bantilan <niels.bantilan@gmail.com>
  • Loading branch information
HenriqueAJNB and cosmicBboy authored Mar 9, 2023
1 parent 2edc6d6 commit 0ef450b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandera/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def is_complex(pandera_dtype: Union[DataType, Type[DataType]]) -> bool:


def is_numeric(pandera_dtype: Union[DataType, Type[DataType]]) -> bool:
"""Return True if :class:`pandera.dtypes.DataType` is a complex number."""
"""Return True if :class:`pandera.dtypes.DataType` is a numeric."""
return is_subdtype(pandera_dtype, _Number)


Expand Down

0 comments on commit 0ef450b

Please sign in to comment.