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?
#1
I am trying to split a string text by ",&: " and put it back to newly created df with columns name
but facing a problem, the result overwrite/ignored my df columns name and return columns instead.
dfA=pd.DataFrame(columns=["NAME","REMARK","SPLITIND","INFO","AREA"])
dfA=dfB["SETUP"].str.split(',|:',expand=True)
how to remove index in df Row?
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 3,546 Jan-09-2021, 08:29 AM
Last Post: buran
  Getting Index Error - list index out of range RahulSingh 2 7,235 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