Posts by Lucas • 41 points
4 posts
-
0
votes1
answer2511
viewsQ: How to loop a dataframe by conditionally removing lines and restarting the loop in a recalculated dataframe at each removal?
Hello, I am performing some data processing and I need my algorithm to perform the comparison between two lines and remove the worst one, according to some conditions. Each time the algorithm…
-
1
votes3
answers16188
viewsA: Removing lines from a dataframe that meet a certain condition
I was able to sort it out, sort of mixed Gabriel’s idea with another form of search: First I create a dataframe with the data I don’t want: df_remove = df_final.loc[((df_final['Diâmetro fio 1'] <…
-
1
votes3
answers16188
viewsQ: Removing lines from a dataframe that meet a certain condition
Hello, I am trying to manipulate a dataframe by python 3.x API pandas with some data to be analyzed, and I need to remove the lines that meet certain conditions. The dataframe has the following…
-
0
votes2
answers594
viewsQ: How to remove all text within a parenthesis?
I want to remove all the text within a parenthesis, along with the parentheses, to return only the text that is outside them, as follows: texto = 'bla bla bla (ble ble)' I want you to turn: texto =…