Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/westernguy2/lux
Browse files Browse the repository at this point in the history
  • Loading branch information
westernguy2 committed Jan 9, 2021
2 parents a8d1243 + 8bcfbeb commit eccd5ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion lux/action/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lux/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eccd5ef

Please sign in to comment.