Skip to content

Commit a780151

Browse files
committed
WIP fix for 7447
1 parent 8c7799f commit a780151

File tree

1 file changed

+1
-2
lines changed
  • modin/core/dataframe/pandas/metadata

1 file changed

+1
-2
lines changed

modin/core/dataframe/pandas/metadata/dtypes.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def _merge_dtypes(
527527
def combine_dtypes(row):
528528
if (row == "unknown").any():
529529
return "unknown"
530-
row = row.fillna(pandas.api.types.pandas_dtype("float"))
530+
row = row.ffill()
531531
return find_common_type(list(row.values))
532532

533533
dtypes = dtypes_matrix.apply(combine_dtypes, axis=1)
@@ -537,7 +537,6 @@ def combine_dtypes(row):
537537
cols_with_unknown_dtypes.append(col)
538538
else:
539539
known_dtypes[col] = dtype
540-
541540
return DtypesDescriptor(
542541
known_dtypes,
543542
cols_with_unknown_dtypes,

0 commit comments

Comments
 (0)