pandas loc on str lower for column comparison
Sayth Renshaw
flebber.crue at gmail.com
Thu Aug 29 19:12:01 EDT 2019
On Friday, 30 August 2019 00:49:32 UTC+10, Piet van Oostrum wrote:
> Piet van Oostrum
>
> > So the correct way to do this is to make df1 a copy rather than a view.
> >
> > df1 = df.loc[:, ('UID','Name','New Leader','Current Team', 'New Team')]
>
> Or maybe even make an explicit copy:
>
> df1 = df[['UID','Name','New Leader','Current Team', 'New Team']].copy()
Thank you so much.
Sayth
More information about the Python-list
mailing list