File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11356,7 +11356,7 @@ def cov(
1135611356 """
1135711357 data = self ._get_numeric_data () if numeric_only else self
1135811358 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 ):
1136011360 msg = (
1136111361 "DataFrame contains columns with dtype datetime64 "
1136211362 "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(
18001800 arr = np .asarray (blk .values , dtype = dtype )
18011801 else :
18021802 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" :
18041804 arr [isna (blk .values )] = na_value
18051805
18061806 if not copy :
You can’t perform that action at this time.
0 commit comments