File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11353,8 +11353,7 @@ def cov(
11353
11353
c -0.150812 0.191417 0.895202
11354
11354
"""
11355
11355
data = self ._get_numeric_data () if numeric_only else self
11356
- dtypes = [blk .dtype for blk in self ._mgr .blocks ]
11357
- if any (d .kind in "mM" for d in dtypes ):
11356
+ if any (blk .dtype .kind in "mM" for blk in self ._mgr .blocks ):
11358
11357
msg = (
11359
11358
"DataFrame contains columns with dtype datetime64 "
11360
11359
"or timedelta64, which are not supported for cov."
Original file line number Diff line number Diff line change @@ -1867,7 +1867,7 @@ def _interleave(
1867
1867
else :
1868
1868
arr = blk .get_values (dtype )
1869
1869
result [rl .indexer ] = arr
1870
- if na_value is not lib .no_default and blk .dtype .kind in [ "m" , "M" ] :
1870
+ if na_value is not lib .no_default and blk .dtype .kind in "mM" :
1871
1871
result [rl .indexer ][isna (arr )] = na_value
1872
1872
itemmask [rl .indexer ] = 1
1873
1873
You can’t perform that action at this time.
0 commit comments