replace tag

9 questions


1 answers
445 views
0
I have a question about deleting spaces

\t\n\r when you import and print the code to get the school notice and convert it to a csv file 0, [Announcement] Information on the Humanities Convergence Project Briefing Session 1, 44...


1 answers
174 views
0
I'd like to know how to change the column name in Pandas.

I'm working on a diagram in the Pandas module, and the column name comes with $ in front of it.['$a', '$b', '$c', '$d', '$e', ...] -> ['a', 'b', 'c', 'd', 'e', ..].I want to remove all the $ before...

2 years ago

1 answers
135 views
0
I want to replace characters in a specific index of a string.

To replace characters in a specific index in a string String myName = domanokz;myName.charAt(4) = 'x';I tried this way, but an error occurred. Is there another method?


1 answers
96 views
0
Is there a way to replace from FragmentTabHost on Android to Fragment that is not added to tab?

With Yongwook's advice, we changed the tab structure that was manually implemented to tabHost.But I was wondering if there is a way to change it to a fragment that has not been added to the tab, but I...


2 answers
109 views
0
I'd like to ask you how to load a file with Python replace.

Sorry for the basic question.In the Python text cleaning process, change the contents one by one as shown below df['sentence'] = df[sentence].str.replace (ballpoint pen, pen)df['sentence'] = df[senten...

2 years ago

1 answers
123 views
0
Python 3.8.12 replace function does not work.

Both jupyter and vcode do not work.name = 'Hong Gil-dong'name.place ('Hong', 'Go')print(name)If I say that, Go Gildong should be printed out This simple thing doesn't work.I can't even register the nu...

2 years ago

1 answers
151 views
0
Python replace, I have a question!

b=2A= Oh, I really want to eat 'crunchy' \jeon\.B=A[5:9]C=B.replace(B), 'Brown'C=C.replace(B),'Yellow',b)print(C)When you print out a C, 'Yellow' 'Yellow' Shouldn't it come out as? I'm asking because ...


1 answers
76 views
0
Python DataFrame Replace values of specific conditions with nan

I read the data from Panda through pd.read_csv. pd = pd.read_csv('data.csv')data= pd['header']There's a zero in the read value has zero I want to give the value of 0 in nan.So,data = data.replace(0,np...

2 years ago

1 answers
94 views
0
Panda's replacement not possible

I want to get rid of the 0 after the number>>> ekfos_df.SPT0 104.01 62 18>>> ekfos_df.SPT.replace('.0', '')0 104.01 62 18>>> ekfos_df.SPT.str.replace('.0', '')<input&...

2 years ago

© 2024 OneMinuteCode. All rights reserved.