File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3358,10 +3358,10 @@ def _nunique(self, skipna=True):
3358
3358
'''
3359
3359
# If we have a groupby table, we need to flatten down to one DataFrame
3360
3360
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 )
3363
3363
# Same bygroups flattening as CASTable.nmiss
3364
- out = pd .concat (list (distinct_results .values ()))
3364
+ out = pd .concat (list (results .values ()))
3365
3365
out = out .set_index ('Column' , append = True )['NDistinct' ]
3366
3366
out = out .unstack (level = - 1 )
3367
3367
out = out .astype ('int64' )
You can’t perform that action at this time.
0 commit comments