The same question holds for column names such as \'C.1\'...
Is there a short cut like df.A
for column names \'B 1\' and \'C 1\' other than df[\'B 1\']
You cannot use the dot notation to access columns if the column name
The dot notation is similar to accessing object's attributes, and you must follow python's variable naming rules if you want to access them that way. For anything else, you'll have to use [...]
.
For a more detailed view, view the note at the bottom of the documentation.