October 2019
Beginner to intermediate
674 pages
16h 43m
English
To access a single entity (a column, value, or item), the square bracket operator can be replaced by the dot operator. Let's subset colA in the DataFrame using the dot (.) operator:
df.colA
This results in the following output:

By using two dot operators in a chain, an individual element can be accessed:
In: df.colA.R3Out: -2.089066
This is also applicable to Panels and Series. However, unlike the square bracket operator in Series, the positional index cannot be used here. For the dot operator to be used, the row labels or column labels must have valid names. ...
Read now
Unlock full access