File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4440,6 +4440,7 @@ def post_processor(
4440
4440
4441
4441
ids , ngroups = self .grouper .group_info
4442
4442
if self .dropna :
4443
+ # splitter drops NA groups, we need to do the same
4443
4444
ids = ids [ids >= 0 ]
4444
4445
nqs = len (qs )
4445
4446
Original file line number Diff line number Diff line change @@ -998,10 +998,11 @@ def apply_groupwise(
998
998
# Methods for sorting subsets of our GroupBy's object
999
999
1000
1000
@final
1001
- @property
1001
+ @cache_readonly
1002
1002
def _sorted_ids (self ) -> npt .NDArray [np .intp ]:
1003
1003
result = self .ids .take (self .result_ilocs )
1004
1004
if getattr (self , "dropna" , True ):
1005
+ # BinGrouper has no dropna
1005
1006
result = result [result >= 0 ]
1006
1007
return result
1007
1008
Original file line number Diff line number Diff line change @@ -717,8 +717,6 @@ def crosstab(
717
717
margins = margins ,
718
718
margins_name = margins_name ,
719
719
dropna = dropna ,
720
- # TODO: Not sure if this is okay
721
- observed = dropna ,
722
720
** kwargs , # type: ignore[arg-type]
723
721
)
724
722
You can’t perform that action at this time.
0 commit comments