Skip to content

Commit 56d02a4

Browse files
committed
formatting
1 parent ef59c17 commit 56d02a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datascience/tables.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,8 +987,8 @@ def pivot_bin(self, pivot_columns, value_column, bins=None, **vargs) :
987987
"""
988988
pivot_columns = _as_labels(pivot_columns)
989989
selected = self.select(pivot_columns + [value_column])
990-
grouped=selected.groups(pivot_columns, collect=lambda x:x )
991-
990+
grouped = selected.groups(pivot_columns, collect=lambda x:x)
991+
992992
# refine bins by taking a histogram over all the data
993993
if bins is not None:
994994
vargs['bins'] = bins
@@ -1962,7 +1962,7 @@ def hist(self, select=None, overlay=True, bins=None, counts=None, unit=None, **v
19621962
if counts is not None:
19631963
counted_values = self._get_column(counts)
19641964
counted_label = 'counts'
1965-
if isinstance(counts, collections.Hashable) and counts in self.labels:
1965+
if isinstance(counts, str) and counts in self.labels:
19661966
columns.pop(counts)
19671967
counted_label = counts
19681968

0 commit comments

Comments
 (0)