Unexpected behavior -- crosstab with dropna=False #13556
Labels
Duplicate Report
Duplicate issue or pull request
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Summary of issue
By the name of it, I expected using the 'dropna=False' option with crosstab would have given me results that include rows for which my column value is missing. However, I instead found that missing values continue to be ignored.
Code Sample
Expected Output
Actual output
This work-around gives me what I expected.
I'd hate for others to also not realize that the NAs are being dropped from the output, even when dropna=False. Perhaps altering the documentation or the behavior of this function would help.
The text was updated successfully, but these errors were encountered: