Skip to content
Advertisement

Tag: python

Add column moving average in mysql

I am currently adding crypto market data to my mysql database. I have the following data per minute : I would like to add the simple moving average of different time periods to the mysql database. I tried to do this calculation in python but this took to much time. Therefore, I calculated the SMA of a 50 day time

How to implement SQL Row_number in Python Pandas?

I am trying to number my dataframe records using SQL “Row_number over” function available in SQL but it results in error as shown in the image. Please note that I don’t wish to number records using Pandas function. Here is the code output of df1.head statement Once I execute this statement it throws an error This code is from Python

Advertisement