Posts by Ricardo Tenorio • 86 points
7 posts
-
0
votes1
answer40
viewsA: Check character by position in C#
using System; using System.Collections.Generic; public class Program { public static void Main() { string nums_mapa_bits = "0101000111"; List<int> bits_ativos = new List<int>(); for(var…
-
0
votes1
answer60
viewsA: Define Entity Account in dotnet
You can use the concept of inheritance in object orientation. As I would: public class Account { public int Id { get; set; } public string Email { get; set; } // Todos os outros atributos comuns a…
-
0
votes2
answers68
viewsA: Iterator should return a String
With the function read_csv of pandas it is simpler to read your table, in the file dados.py: import pandas as pd def carregar_acessos(): arquivo = pd.read_csv('acesso_pagina.csv') return arquivo and…
-
0
votes1
answer42
viewsA: For some reason I don’t know, this code is ignoring the complex part of the graph being that I need it. Could someone help me?
In your case result is an instance of the class Result that stores the result of the simulations, this class has the attribute expect which is a lista/array, as you have an array of complex numbers…
-
2
votes1
answer58
viewsA: How to use i no for value in a function?
Use string concatenation to cast a year select = Select(driver.find_element_by_id('Identificador')).select_by_visible_text(j+'/'+str(i))
-
0
votes1
answer36
viewsA: How do I count how many duplicate lists there are in a python numpy array?
Hi, maybe it can be simpler, import collections array = [[0,0,1,1,1],[0,0,0,1,1], [1,1,1,1,1],[0,1,0,1,0], [0,0,1,1,1],[0,0,0,1,1], [1,1,1,1,1],[0,1,0,1,0]] contador = collections.Counter(array) for…
-
1
votes1
answer2901
viewsA: Valueerror: could not Convert string to float: 'red'
Hi, the problem is that your database (Wine.csv) has in its lines both numbers and strings (Labels); one way to read this data would be using the pandas and Labelencoder (to convert its categories…