All Questions
5 questions
0
votes
1
answer
51
views
Incomprehensible string encoding python
I'm lost with string encoding, I've a CSV file of French cities, and certain cities have special caracters such : é ç and è so I got some a lot of strings like this Péron, Saône and Étienne, I ...
0
votes
3
answers
65
views
how to fix the worrd in the table column?
I am extracting a table from a website. I tried already with Pandas and BeautifulSoup.
Here is an example of a code i tried:
res = requests.get("https://www.dasoertliche.de/Themen/...
0
votes
2
answers
243
views
String in set of pandas dataframe but not in selected column of pandas dataframe
I have a dataframe in which one of the columns has a uniform datatype of string, and for a specific string I wanted to check if it was in that column. I found the simple comparison gave 'False', but ...
1
vote
3
answers
3k
views
Split list of text in pandas dataframe
I have pandas dataframe consist of list of text, i want to split the text by ,
df['c1']=['this is text one','this is text two','this is text three']
I tried this
new = df["c1"].str.split(",", n = 1, ...
1
vote
1
answer
76
views
Using integers from columns as slice indexers of a string in another column
I have a df:
string_pos = {'string': [ 'aabb', 'ddcc', ],
'position_1': [0, 1],
'position_2': [3, 4]}
output:
string position_1 position_2
0 aabb 0 ...