On 12 November 2016 at 17:01, Gary Godfrey <[email protected]> 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
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to