Skip to content

Commit 6fd8595

Browse files
author
Michael Erickson
committed
Updated for style
Signed off by: Michael Erickson <[email protected]>
1 parent ebe483f commit 6fd8595

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swat/cas/table.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,10 +3358,10 @@ def _nunique(self, skipna=True):
33583358
'''
33593359
# If we have a groupby table, we need to flatten down to one DataFrame
33603360
if self.get_groupby_vars():
3361-
distinct_results = self._retrieve('simple.distinct', includeMissing=not skipna)
3362-
distinct_results.pop('ByGroupInfo', None)
3361+
results = self._retrieve('simple.distinct', includeMissing=not skipna)
3362+
results.pop('ByGroupInfo', None)
33633363
# Same bygroups flattening as CASTable.nmiss
3364-
out = pd.concat(list(distinct_results.values()))
3364+
out = pd.concat(list(results.values()))
33653365
out = out.set_index('Column', append=True)['NDistinct']
33663366
out = out.unstack(level=-1)
33673367
out = out.astype('int64')

0 commit comments

Comments
 (0)