I take an online class to learn python, and the teacher taught us that indexing the chain was not a good idea. However, he could not say that this is a suitable alternative for use.
Suppose I have a Pandas data frame with rows indexed as ['1', '2', '3'] and columns named ['a', 'b', 'c'] .
What is the appropriate alternative to using the df['1']['a'] command to retrieve the value found in the first row and first column?
source share