-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling suppressed cells vs missing values #4
Comments
I was ok with this change originally b/c there was a strict check in the code to make sure there were NO NA values anywhere in the original dataframe, though I may have mistaken the control flow. I'm not sure exactly what it would mean to do suppression with NA values. Perhaps the compromise is:
|
So, after discussing this problem with Paul in person, I have realized that there is a case where an individual may want to calculate the The code solving this will have a separate search for columns with |
I would greatly appreciate a test that explains this situation :-) |
Let me clarify this a little bit to the best of my understanding. @edwardhuh please chime in if this is not accurate. In the case of this helper function In the case of |
Ah, this does make sense. I think that we should schedule some time in an upcoming sprint where these concerns are first written out as tests. 😄 This is one of the cases where I feel like test-driven development does make the most sense! |
@edwardhuh and @khwilson
I saw the output of this helper function was changed:
Maybe I am missing something, but it seems that the last
fillna()
step will also apply the cell suppression symbol to the cells that are actually missing? I generally leave missing as-is, which allows something likedf.zen.pretty().format(na_rep="N/A")
for the user. Wondering if usingdf.loc
with the suppression symbol might be a good idea?The text was updated successfully, but these errors were encountered: