get N columns before a column code example Example: how to select a column with brackets in jupyter notebook df ['Position']