Does it matter how you do it? Maybe one is faster than the other?
Originally appeared here:
Pandas Columns: Bracket Indexing (df[‘x’]) Versus Dot Syntax [df.x]
Go Here to Read this Fast! Pandas Columns: Bracket Indexing (df[‘x’]) Versus Dot Syntax [df.x]