Python Forum
how to remove index in df Row?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to remove index in df Row?
#2
If I understood you correctly, the sample below could be useful for you:

import pandas as pd
dfb = pd.DataFrame({'setup': ['1,2,3,4', '4,5,6,7', '6,7,8,4']})
dfa = pd.DataFrame(dfb['setup'].str.split(',').values.tolist(), columns=['one', 'two', 'three', 'four'])
Reply


Messages In This Thread
how to remove index in df Row? - by issac_n - Apr-26-2018, 07:14 AM
RE: how to remove index in df Row? - by scidam - Apr-27-2018, 07:40 AM
RE: how to remove index in df Row? - by issac_n - May-04-2018, 07:16 AM
RE: how to remove index in df Row? - by scidam - May-07-2018, 01:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Getting Index Error - list index out of range krishna 2 2,677 Jan-09-2021, 08:29 AM
Last Post: buran
  Getting Index Error - list index out of range RahulSingh 2 6,217 Feb-03-2020, 07:17 AM
Last Post: RahulSingh

Forum Jump:

User Panel Messages

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