How to split excel field data which contains the multiple delimiter values

0 votes
Hi Team,

Can any one help me regarding a query, How to split excel field data which contains the multiple delimiter values?

ex:column name Filed_data which contains values as A=1;B=2;C=3;D=4

I want to display based on field names as A with value 1 like that.
Jun 25, 2020 in Python by Karan
• 19,610 points
1,363 views

2 answers to this question.

0 votes
I think you can read your excel file, convert it to a dataframe and filter data according to your requirement.
answered Jun 25, 2020 by Karan
• 19,610 points
0 votes

Try the following:

new = data["Filed_data"].str.split(";", n = 1, expand = True)
 
# making separate columns from new data frame for A, B, #etc.
data["A"]= new[0]
data["B"]= new[1]
-
-
and so on
answered Jun 25, 2020 by Shivam Dutt Sharma

Related Questions In Python

0 votes
1 answer

Python program to read the excel file which contains more than 65K records

Hi @Rashmi! I read your code and there ...READ MORE

answered Feb 9, 2019 in Python by Omkar
• 69,210 points
1,005 views
0 votes
1 answer

How to check the value is double in the existing data that when ever the values are double print thats value

Hey, @There, I guess regarding your query you ...READ MORE

answered Nov 3, 2020 in Python by Gitika
• 65,910 points
668 views
0 votes
1 answer
+3 votes
5 answers

How to read multiple data files in python

Firstly we will import pandas to read ...READ MORE

answered Apr 6, 2018 in Python by DeepCoder786
• 1,720 points
14,755 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,023 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,409 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP