caneff commented on code in PR #28500:
URL: https://github.com/apache/beam/pull/28500#discussion_r1329423557
##########
sdks/python/apache_beam/dataframe/frames.py:
##########
@@ -3994,12 +3999,18 @@ def value_counts(self, subset=None, sort=False,
normalize=False,
columns = subset or list(self.columns)
if dropna:
- dropped = self.dropna()
+ # Must include subset here because otherwise we spuriously drop NAs due
+ # to columns outside our subset.
+ dropped = self.dropna(subset=subset)
Review Comment:
Yes. Added tear case fails in 1.5.3 as well without the fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]