O'Reilly logo
  • Ulf Morys thinks this is interesting:

SpotCrudePrices_2013[['West Texas Intermediate','U.K. Brent']]

From

Cover of Mastering pandas

Note

Would be interesting to see if the column index values were also added to a newly created variable. In the previous example, “Dubai” did not appear as column name in the newly created variable “dubaiPrices”.