Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: shifting specific column to before/after specific column in dataframe
Post: RE: shifting specific column to before/after speci...

x=df.columns.get_loc('col') # getting column index , the place before that column var_list=new_var # list of columns that are need to moved or order if multiple column and they are in ...
theinzawoo General Coding Help 4 2,775 Mar-19-2019, 10:45 AM
    Thread: shifting specific column to before/after specific column in dataframe
Post: RE: shifting specific column to before/after speci...

In my data set, there are 699 columns , I want to move column number : 694,695 to 26 and 27 respectively. How is your suggestion!
theinzawoo General Coding Help 4 2,775 Mar-19-2019, 06:40 AM
    Thread: shifting specific column to before/after specific column in dataframe
Post: shifting specific column to before/after specific ...

In dataframe, a b f g c d e i j h 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 1 0 2 1 1 1 1 1 0 0 0 0 1 3 1 0 1 0 0 1 1 1 1 0 4 1 1 1 1 1 0 1 0 0 1 5 1 0 1 0 0 1 1 1 1 0 6 1 1 1 1 1 0 1 0 1 1 7 0 0 0 0 0...
theinzawoo General Coding Help 4 2,775 Mar-19-2019, 04:10 AM
    Thread: labelling variables of df with map() in loop
Post: RE: labelling variables of df with map() in loop

Thanks your suggestion is correct , I found the way !
theinzawoo General Coding Help 2 2,496 Mar-19-2019, 03:42 AM
    Thread: labelling variables of df with map() in loop
Post: labelling variables of df with map() in loop

These are in panda df , agree={'1':'agree','0':"don't agree"} list_agg=["anc_ir_fo_daily","anc_att_vac_neg", "anc_iodine","anc_danger_neg", "bf_firsthour", "bf_sixmonths_neg", "bf_prev_dehy_neg", "ge...
theinzawoo General Coding Help 2 2,496 Mar-14-2019, 04:23 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020