Nov. 15, 2016
5:34 p.m.
On 12 November 2016 at 17:01, Gary Godfrey <g.pythonideas@wamp.us> wrote:
Hi,
This is a little more readable, but still a bit ugly. What I'm proposing here is:
mydf = df[ w'field1 field2 field3' ]
This would be identical in all ways (compile-time) to:
mydf = df[ ('field1', 'field2', 'field3') ]
If using a tuple as an index expression, wouldn't it be ok for you to use: mydf = df['field1', 'field2', 'field3'] ? That should be equivalent to the second example, but without the doble bracketing Best, D. -- Daniel F. Moisset - UK Country Manager www.machinalis.com Skype: @dmoisset