We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c7799f commit a780151Copy full SHA for a780151
modin/core/dataframe/pandas/metadata/dtypes.py
@@ -527,7 +527,7 @@ def _merge_dtypes(
527
def combine_dtypes(row):
528
if (row == "unknown").any():
529
return "unknown"
530
- row = row.fillna(pandas.api.types.pandas_dtype("float"))
+ row = row.ffill()
531
return find_common_type(list(row.values))
532
533
dtypes = dtypes_matrix.apply(combine_dtypes, axis=1)
@@ -537,7 +537,6 @@ def combine_dtypes(row):
537
cols_with_unknown_dtypes.append(col)
538
else:
539
known_dtypes[col] = dtype
540
-
541
return DtypesDescriptor(
542
known_dtypes,
543
cols_with_unknown_dtypes,
0 commit comments