Posts by Kioolz • 192 points
16 posts
-
1
votes2
answers97
viewsQ: How do I filter a Dataframe row by knowing a String value from one of its columns?
Let’s say I have at hand this dataframe And I know that a specific value inside a column called "Code", contains a String that I will call "mxrf11", in the whole dataframe will not have another name…
-
2
votes1
answer23
viewsQ: How can I line a Pandas dataframe from a list that contains variables?
So guys, I’m having a problem that basically works in a simplified way like this # Eu criei um DataFrame a partir do pandas import pandas as pd Colunas = ["A","B","C","D"] df = pd.DataFrame(columns…
-
0
votes3
answers73
viewsQ: Doubt about storing the function result in a list and the types of stored variables
Home Post I am making a simple code that gives me the variation % between two numbers, A and B. As soon as he calculates this variation %, he should attach the result of the operation in a list that…
-
1
votes1
answer59
viewsQ: Question about list(zip) command and converting dictionaries to dataframes?
I am filling some lists with strings and other numeric entries and using them to fill some dictionaries with information that I need to view alternately. Then I came to doubt, the command…
-
-1
votes1
answer102
viewsQ: Changing the axes of a data histogram to improve data visualization
I am practicing a bit of data science for a college project with the information available on COVID19 and from there I am trying to estimate by graphs the distribution of age groups but when I was…
-
0
votes2
answers188
viewsA: Replace specific strings in the dataframe with empty values
I will test your method, but I also managed to solve the problem by doing this technique here. :) #4) Convertendo os valores string em formato float e substituindo os valores N/D da coluna por…
-
-1
votes2
answers188
viewsQ: Replace specific strings in the dataframe with empty values
I have a file. csv I’m treating, and the column ap_residencia_status should only be populated with floats but is filled with strings (even numeric values are strings) and the values that should be…
-
0
votes0
answers1085
viewsQ: How to plot or overlay graphs of a function with two variables using matplotlib?
I’m having trouble finding the right graph on my Plot, I’m modeling two physics equations of two variables, I believe the problem is because I’m not going through the graph correctly with my while,…
-
1
votes1
answer141
viewsQ: Controlling the Plot range of matplotlib , use problem of 100% of ram memory
Hello community of Stackoverflow :) I am developing a small code that will plot you from 2 filled lists from an equation while a while condition is not satisfied. Once the lists are filled in, I use…
-
0
votes2
answers274
viewsQ: Limit the amount of decimals of a floats values that fill a list
Hello Stackoverflow community, good morning. I’m trying to develop a code that calculates the numerical values obtained from a physics equation Here is the form of the equation, where k , T and pi…
-
2
votes1
answer454
viewsQ: Creating a covariance program with Python
I’m working out a little bit with the lists and trying to create statistical operations with them and I’m having a hard time calculating the covariance Basically I’m trying to create separate…
-
0
votes1
answer1735
viewsQ: Calculating the average and weighted average with For
because I’m making the mistake File "", line 50 print ("This is the sum of the products between the samples and their respective weights", Pixi)" ^ to calculate the weighted average with the user…
python-3.xasked Kioolz 192 -
0
votes1
answer1662
viewsQ: Replace Nan value in dataframe with a string
Hello, I’m developing a small Dataframe that stores the name and symbol of some acids. I have already made the code that generates Dataframe as two separate series and concatenate them in the DF…
-
1
votes1
answer83
viewsQ: Numerical comparator
print ("Insira dois valores para serem comparados:") Valor1= float(input("Escreva um número:")) Valor2= float(input("Escreva outro número:")) print ("Os números que você inseriu foram esses?","\n",…
-
0
votes0
answers150
viewsQ: Making operations inside the Dataframe
I’m trying to do the following thing with this code import pandas as pd from datetime import date # Criando uma série no pandas que represente a indexação das linhas como valores temporais # Por…
-
8
votes2
answers174
viewsQ: Filling a list using its size as a stop criterion
I’m creating a code that defines a function that depends on two variables (Z and N). This program defines the sum of these variables and attaches each possible sum in an empty list. The list must…