jakevdp / PythonDataScienceHandbook

Python Data Science Handbook: full text in Jupyter Notebooks
http://jakevdp.github.io/PythonDataScienceHandbook
MIT License
43.2k stars 17.93k forks source link

Confusing Terminology on the Pandas chapter ##Index alignment in DataFrame #172

Open 2313499 opened 5 years ago

2313499 commented 5 years ago

I was having a very hard time figuring out

fill = A.stack().mean()
A.add(B, fill_value=fill)

fill = 4.5. However I computed a value of 3.2 because I was taking the mean from the column of A not the DataFrame A. This coming after the Indexing chapter where "explicit is better than implicit." I was thinking that this should be a little more explicit.

nikhilrsharma commented 4 years ago

I did not find this confusing at all