Skip to content

BUG: Series/DataFrame construction from scalars #38405

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

Merged
merged 7 commits into from
Dec 12, 2020
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
Prev Previous commit
Next Next commit
typo fixup
  • Loading branch information
jbrockmendel committed Dec 12, 2020
commit c0641164665113a6c52a9f06cbb901b700f2325e
2 changes: 1 addition & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def maybe_unbox_datetimelike(value: Scalar, dtype: DtypeObj) -> Scalar:

Notes
-----
Caller is responsible for checking dtype.kidn in ["m", "M"]
Caller is responsible for checking dtype.kind in ["m", "M"]
"""
if is_valid_nat_for_dtype(value, dtype):
# GH#36541: can't fill array directly with pd.NaT
Expand Down