PANDAS FOR DATA SCIENCE
Pandas Columns: Bracket Indexing (df[‘x’]) Versus Dot Syntax (df.x)
Does it matter how you do it? Maybe one is faster than the other?
Published in
5 min readMar 1, 2024
When using Pandas, most data scientists would go for df['x']
or df["x"]
— it doesn’t really matter which one you use as long as you stick to whichever you’ve chosen. You can…