diff --git a/lux/action/default.py b/lux/action/default.py index b075232d..de31f2ca 100644 --- a/lux/action/default.py +++ b/lux/action/default.py @@ -7,7 +7,6 @@ def register_default_actions(): from lux.action.filter import add_filter from lux.action.generalize import generalize - print("Register default actions") # display conditions for default actions no_vis = lambda ldf: (ldf.current_vis is None) or ( ldf.current_vis is not None and len(ldf.current_vis) == 0 diff --git a/lux/core/series.py b/lux/core/series.py index 89382660..b1388bb9 100644 --- a/lux/core/series.py +++ b/lux/core/series.py @@ -88,7 +88,8 @@ def __repr__(self): # 1) Values of the series are of dtype objects (df.dtypes) is_dtype_series = all(isinstance(val, np.dtype) for val in self.values) # 2) Mixed type, often a result of a "row" acting as a series (df.iterrows, df.iloc[0]) - mixed_dtype = len(set([type(val) for val in self.values])) > 1 + # Tolerant for NaNs + 1 type + mixed_dtype = len(set([type(val) for val in self.values])) > 2 if ldf._pandas_only or is_dtype_series or mixed_dtype: print(series_repr) ldf._pandas_only = False