Questions tagged as 'pandas'

1
answer

Python Pandas KMeans: clustering to a dataFrameGroupBy type

I want to pass an KMeans.fit(X) argument to dataFrameGroupBy , but I get this error: ValueError: setting an array element with a sequence. Would converting the dataFrameGroupBy into a multidimensional array be the only...
asked by 28.03.2017 / 12:31
1
answer

Create a new field within a table and enter the value of another but taking the value of a previous row

I would like to do the following: I have a table with several fields 'IdActive, Date, Close' and I want to add another new field 'Closure_1' which I want to introduce the values that are in the Closing field but taking the value before the recor...
asked by 20.01.2017 / 13:21
1
answer

how to correct error in sitanxis with column name in dataframe?

I am executing this code to delete some records of a dataframe, but in line 16 (move_id / id) it is the name of the column and / separates the name of the column which is not ideal. the error response is "move_id" does not exist and it is true x...
asked by 21.09.2018 / 19:08
1
answer

Mobile Averages in Python

I would like to know if there is a specific function in Python for calculating moving averages. In MATLAB there is one called "tsmovavg" that has an algorithm called "Financial Time Series". Will the same algorithm exist in Python?     
asked by 23.05.2018 / 18:10