Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo that causes several NaT methods to have incorrect docstrings #17327

Merged
merged 4 commits into from
Aug 29, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pandas/_libs/tslib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3925,7 +3925,7 @@ for _method_name in _nat_methods:
def f(*args, **kwargs):
return NaT
f.__name__ = func_name
f.__doc__ = _get_docstring(_method_name)
f.__doc__ = _get_docstring(func_name)
return f

setattr(NaTType, _method_name, _make_nat_func(_method_name))
Expand All @@ -3937,7 +3937,7 @@ for _method_name in _nan_methods:
def f(*args, **kwargs):
return np.nan
f.__name__ = func_name
f.__doc__ = _get_docstring(_method_name)
f.__doc__ = _get_docstring(func_name)
return f

setattr(NaTType, _method_name, _make_nan_func(_method_name))
Expand All @@ -3955,7 +3955,7 @@ for _maybe_method_name in dir(NaTType):
def f(*args, **kwargs):
raise ValueError("NaTType does not support " + func_name)
f.__name__ = func_name
f.__doc__ = _get_docstring(_method_name)
f.__doc__ = _get_docstring(func_name)
return f

setattr(NaTType, _maybe_method_name,
Expand Down