Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Adapting a dataframe to the some of columns
Post: RE: Adapting a dataframe to the some of columns

Hi, Thanks for your reply. Problem is, I need the "inds" to be adapted to the len of my var i I want to manage i (i = [58, 41, 5, 0, 15,...] Then need the "iloc" to re-adjust column indexing to the ...
flyway Data Science 2 2,073 Aug-12-2020, 07:21 AM
    Thread: Adapting a dataframe to the some of columns
Post: Adapting a dataframe to the some of columns

Hello to all, I need to automate my Var X = df.iloc[; , [i[0]], [i[1]],... Depending on len of i[n] Something like; i = [5, 16, 20, ... ] if len(i) = 1 then X = df.iloc[: , [ i[0] ]] if len(i) = 2...
flyway Data Science 2 2,073 Aug-11-2020, 05:55 PM

User Panel Messages

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