Closed robml closed 2 years ago
That looks like an error you would get from seaborn if you passed the original count_subset
(or something without the normed_total
column, or the column name misspelled) -- I tried the example locally with pandas 1.3.5 and it works correctly, here is what the results
variable looks like for me in Jupyter:
So in Chapter 14 (the worked through examples) in the first example, page 412, there is a piece of code that normalizes the OS usage of the devices used to shorten gov urls.
The function supplied is as follows:
It is on this last line where I get a
ValueError: Could not interpret input 'normed_total'
I haven't had any other issues withapply
ongroupby
before, so I am unsure whether there is a typo or maybe functionality has been deprecated. Any suggestions?