File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11356,7 +11356,7 @@ def cov(
11356
11356
"""
11357
11357
data = self ._get_numeric_data () if numeric_only else self
11358
11358
dtypes = [blk .dtype for blk in self ._mgr .blocks ]
11359
- if any (is_datetime64_any_dtype ( d ) or is_timedelta64_dtype ( d ) for d in dtypes ):
11359
+ if any (d . kind in "mM" for d in dtypes ):
11360
11360
msg = (
11361
11361
"DataFrame contains columns with dtype datetime64 "
11362
11362
"or timedelta64, which are not supported for cov."
Original file line number Diff line number Diff line change @@ -1800,7 +1800,7 @@ def as_array(
1800
1800
arr = np .asarray (blk .values , dtype = dtype )
1801
1801
else :
1802
1802
arr = np .array (blk .values , dtype = dtype , copy = copy )
1803
- if passed_nan and blk .dtype .kind in [ "m" , "M" ] :
1803
+ if passed_nan and blk .dtype .kind in "mM" :
1804
1804
arr [isna (blk .values )] = na_value
1805
1805
1806
1806
if not copy :
You can’t perform that action at this time.
0 commit comments