[Pandas-dev] Help replacing workflows that used DataFrame.select
Paul Hobson
pmhobson at gmail.com
Mon Nov 27 20:21:39 EST 2017
Hey folks,
I noticed that DataFrame.select is now deprecated in favor of
DataFrame.loc[index.map(selector_fxn)]
PR: https://github.com/pandas-dev/pandas/pull/17633
Issue: https://github.com/pandas-dev/pandas/issues/12401
I have a lot of work flows that look something like this:
res = (
data.resample(freq)
.agg(agg_dict)
.pipe(fxn_that_adds_many_cols)
.select(complex_fxn_that_selects_a_few_cols, axis='columns')
)
It's not immediately clear to me how to access all of the e.g., columns in
the middle or at the end of a chain of dataframe operations.
Any tips?
-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pandas-dev/attachments/20171127/c25a3fc1/attachment.html>
More information about the Pandas-dev
mailing list