Posts by Syner • 95 points
6 posts
-
0
votes2
answers93
viewsQ: Date change of a monthly average of Pandas
Hello. Using the code below I perform a monthly average, but it is fixed on the last day of the current month and I would like to know if it is possible to configure it for a fixed day of the month…
-
0
votes1
answer47
viewsQ: Problem when performing the calculation between arrays
I’m building a code that has a very similar structure to the code below. from math import sin, pi from numpy import zeros djn = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] djn = array(djn) def test(djn): M =…
python-3.xasked Syner 95 -
0
votes3
answers52
viewsQ: How to fill out a list?
I need to fill out a list (without using packages like numpy or pandas) that has a format similar to the following: lista1 = [0, 3, 7, 10, 15] The numbers are increasing but do not follow an order…
-
1
votes2
answers361
viewsQ: How to create an array with value one?
Hello I would like to know if there is a way and which would be the most correct way to create a list (or an array) with the ones filled with the value 1 given the length of another list. Exactly…
-
2
votes2
answers133
viewsQ: How to create two y points for a same x?
Hello, I would like to create a python routine to create "double points", where a same value of x would assume two values of y for any situation. Using the following data sequence for example: 1;5…
-
2
votes1
answer480
viewsQ: Problem "List index out of range"
In a Python code I have several conditions that filter my data, and this data is connected to a position counter i. But within one of these specific conditions I need to record the position of the…