SpotCrudePrices_2013[['West Texas Intermediate','U.K. Brent']]
- 4. Operations in pandas, Part I – Indexing and Selecting
- from Mastering pandas
- Publisher: Packt Publishing
- Released: June 2015
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”.
Share this highlighthttp://www.safaribooksonline.com/a/mastering-pandas/2988342/