Posts by Victor • 17 points
6 posts
-
0
votes1
answer89
viewsQ: Adding a number to an array gives an index problem
I have tried everything and could not add the number 1 at the bottom of the list predictors. Gives the following error: new_inputs[i] = np.append(inputs[i],one[i]) Indexerror: list assignment index…
-
-2
votes1
answer73
viewsQ: How to add lines from one matrix into another?
I have two matrices new_output and new_output_test and would like the matrix data new_output_test were added to the matrix new_output as the last data of this matrix. new_output Out[65]:…
-
1
votes1
answer1047
viewsQ: Zerodivisionerror: integer Division or modulo by zero
The code: janela=[] for i in range(100): if(len(leitura)%i == 0): janela.append(i) The mistake I get is this: Zerodivisionerror: integer Division or modulo by zero…
-
0
votes1
answer83
viewsQ: Update data from two worksheets without overwriting in the source file
I read the file sheets in the following way: sheet_Pessoas = pd.read_excel("meus_dados.xlsx", sheet_name=0) sheet_Clientes = pd.read_excel("meus_dados.xlsx", sheet_name=1) Then I add a line in the…
-
0
votes1
answer115
viewsQ: I can’t read column on pandas
I have this Dataframe: Nome CPF ... Senha Cargo 0 Silvio José 10575674451 ... 12345 Administrador 1 Carlos Alberto 10767764330 ... 12345 Administrador 2 Maria Madalena 23323234343 ... 12345…
-
0
votes1
answer181
viewsQ: Empty columns of a spreadsheet when using pandas read()
import pandas as pd wb = pd.ExcelFile("meus_dados.xlsx") sheet_1 = pd.read_excel("meus_dados.xlsx", sheet_name=0) print sheet_1 that line of code brings me that answer: Nome CPF ... Unnamed: 8…