Posts by Allen Rodger • 45 points
12 posts
-
0
votes1
answer79
viewsA: Slice and store Ict in pyhon
Hey there, buddy! I believe you’re drawing a very complex line of reasoning for something that should be simple. If ,in the end, the goal is to separate into lists, I believe you should do this in a…
-
-1
votes2
answers43
viewsA: Error in display of dictionary information
friend, I believe you should define the initial state as different from none or, to facilitate code, use True as bound and False as disconnected, by means of a method that assesses the. If generator…
-
0
votes2
answers313
viewsA: how to make this variable have a double value #Dart
actually, after making the following change made error saying that toDouble does not work for strings. import 'dart:core'; //biblioteca do toDouble() void main(){ double saldo = 100.0; print(' ');…
-
0
votes2
answers313
viewsQ: how to make this variable have a double value #Dart
If anyone can give me a detailed description, thank you, I’m new to the language import 'dart:io'; void main(){ var saldo = 100; print(' '); print('gostaria de sacar dinheiro?: (y/n)'); String…
-
0
votes1
answer2767
viewsQ: Valueerror: Input contains Nan, Infinity or a value Too large for dtype('float64') ( I did the check and none of these proceed)
I’m working on a python linear regression project, but there’s been a problem with the.fit() model. the following errors occur: in the code I put here: Valueerror: Input contains Nan, Infinity or a…
-
-1
votes1
answer52
viewsQ: Linear split #python random_state Seed recognition failed
If random_state is not working, whenever I run into jupyter, it comes with a different precision.. Can anyone tell me the error? thanks in advance :D # estimador de aprovaçao baseado nas notas das…
-
0
votes4
answers1516
viewsA: how it returns the indices of a python list
Whoa, whoa, buddy, whoa! Come on: if you want to print the contents of a list named as a list, You can do the following: lista = [0,0,0,0] lista_indices = [] for i in lista:…
-
-1
votes2
answers85
viewsQ: sklearn library accuracy_score error
from sklearn.svm import LinearSVC from sklearn.metrics import accuracy_score # retorna 1 se houver mais de 1 número 1 treino_x = [[1,0,1],[1,1,0],[0,0,1],[0,1,1]] teste_x…
-
0
votes1
answer53
viewsQ: getter-Setter error #python
I wonder where is the error in this supposedly simple code class Nome: def __init__(self,nome,sobrenome): self.__nome = nome # variável privada self.__sobrenome = sobrenome # variável privada…
-
-1
votes2
answers107
viewsQ: python cleaning raw data manually
import pandas as pd data_r = open('rosalind_gc.txt', 'r') data_r1 = data_r.readlines() data_r2 = [] data_r3 = [] #tirar os \n do texto for i in data_r1: data_r2.append(i.rstrip()) data_index = []…
-
-1
votes1
answer127
viewsA: how to deal with Nan in Dataframe created with list comprehension (Python)
I got it this way from Jupyter: k = pd.Dataframe(movies_data.head(10).to_frame().title, index = [i for i in range(10)]) print(k) s = pd. Series(data = k.title, index = k.index) print(s) can explain…
-
-2
votes1
answer127
viewsQ: how to deal with Nan in Dataframe created with list comprehension (Python)
How can I take these NaN and leave the titles of the films, by any of the construction methods? import pandas as pd rating_data = pd.read_csv('ml-25m/ratings.csv') movies_data =…