Posts by Jair Miranda • 39 points
6 posts
-
0
votes3
answers583
viewsA: Machine Learning Python
#Acho que faltou voce importar os dados, vamos lembrar abaixo usando o pandas: import pandas as pd In place of the one in quotes you place your dataframe with the path where it is df =…
-
-1
votes2
answers4543
viewsA: Turn columns into python pandas rows
Hello, all right, I found a really cool solution, which solved the problem I will post the image here! , df.stack()…
-
0
votes1
answer2655
viewsQ: Pandas iterrows, how to make the second looping using index
for index, row in candles.iterrows(): if (row['Twintower'] == 1): I would like to make a second looping from the moment he finds this condition, ie from this index down, or Row down, tried several…
-
0
votes1
answer84
viewsQ: Warning pandas, 2 loopings!
Guys I’m having trouble with this looping, because it’s a situation that I can’t solve with np.where, why does the DataFrame to find the value of the gain or loss from another condition, which comes…
-
3
votes4
answers146
viewsA: Performing functions with and without creating local variables
There is always the %time function that I use in jupyter, but in this case the time difference was so infinite that it didn’t register the difference: follow another example of connection with an…
-
1
votes1
answer198
viewsQ: Warning looping Python Pandas, How to make the looping differently?
Guys I’m doing this looping here: for i in range(1, len(candles)): if candles['askclose'][i]> candles['askopen'][i]: candles['Fechamento'][i]= 'alta' But the jupyternotebook always returns me…