Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
19thyneb committed Dec 27, 2020
1 parent 7324e29 commit 674d828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lux/_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def set_executor_type(self, exe):
self.executor = SQLExecutor()
elif exe == "Pandas":
from lux.executor.PandasExecutor import PandasExecutor

self.SQLconnection = ""
self.executor = PandasExecutor()

Expand Down
4 changes: 3 additions & 1 deletion lux/executor/PandasExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def execute_aggregate(vis: Vis, isFiltered=True):
vis._vis_data = vis.data.rename(columns={index_name: "Record"})
vis._vis_data = vis.data[[groupby_attr.attribute, color_attr.attribute, "Record"]]
else:
vis._vis_data = vis.data.groupby(groupby_attr.attribute, dropna=False).count().reset_index()
vis._vis_data = (
vis.data.groupby(groupby_attr.attribute, dropna=False).count().reset_index()
)
index_name = list(
filter(lambda k: groupby_attr.attribute not in k, vis.data.columns)
)[0]
Expand Down

0 comments on commit 674d828

Please sign in to comment.