that does the trick, thank you very much!
On Friday, February 28, 2014 9:36:40 PM UTC-5, Jason Solack wrote: > > Hello all, I'm trying to select a column from a DataFrame using a > variable... something like this > > df = DataFrame(A=[1:10], B=[11:20]) > > when i do this: > > df [ : 2] > > i select column B > > if i do this: > > t = 2 > df [ : t] > > i get an error > > Error Key not found :t > > what am i missing?? > > Thank you in advance, > > Jason >
