PythonDataScienceHandbook icon indicating copy to clipboard operation
PythonDataScienceHandbook copied to clipboard

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

Open 2313499 opened this issue 5 years ago • 1 comments

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.

2313499 avatar Mar 02 '19 19:03 2313499

I did not find this confusing at all

nikhilrsharma avatar Apr 11 '20 16:04 nikhilrsharma