Questions tagged as 'split'

2
answers

How to split the dataframes of a list based on a group variable, common in all of them?

I have a list with n dataframes. They have a common variable called group . I want to parse dataframes only with the groups a and c of group . My goal: Return these dataframes within the list with only these sele...
asked by 11.09.2018 / 22:01
1
answer

How to add a character in a string, which is already divided, to each N character?

I need to know how to separate, in line breaks, one string to each N character. However, before separating each N characters, they have already been separated by each comma .    I want this separation to be a break in the output. Only th...
asked by 08.06.2018 / 16:13
0
answers

Use the first part of the split [closed]

I would like to know if you have to use split to do just one division, for example , I have the following text: dia_24_06_18 . I wanted you to sort by _ in the array like this: [0] - dia [1] - 24_06_18     
asked by 16.12.2018 / 01:30
2
answers

What is the difference between string.split (',') and string.rsplit (',') in python?

When using these lines in the python terminal, I could not find a difference between any of them. I researched but I did not find anything about it, at least in Portuguese. What would be the difference between them? x = 'apple, banana, cherry'...
asked by 01.12.2018 / 14:43
1
answer

How to convert a JSONArray to an array of strings?

String mensao = "[\"brega_falcao\",\"SamiPietikainen\",\"TecRahul\",\"gpantuza\",\"mkyong\",\"mkyong\",\"YouTube\"]"; Mensao is the JSONArray that I want to convert. I tried this but it did not work: //Retiro o '[' do inicio e do fim ']'...
asked by 17.04.2018 / 17:40
1
answer

What is the split method for ionic?

Well, I'm developing an app with ionic 3, and I hear of a method called split, but I've never understood its functionality. I just understood that it is related to arrays. Given this: What is the split method? How is it usability?
asked by 28.11.2018 / 14:45
0
answers

How to make a space split? [duplicate]

I have this text: "resultados 2018 295 1 br" How do I separate by space and put in strings? example: string ano = argumento[0]; // iria ser 2018 string ano = argumento[1]; // iria ser 295 string ano = argumento[2]; // iria ser 1 string...
asked by 26.10.2018 / 23:25