usually, we calculate the return with next row data by simply using df.Close.shift()
but if we want shifting by a specific time period, can try:
df['ret15min'] = (df.Close.shift(-15, freq="min") -df.Close)*100/df.Close
usually, we calculate the return with next row data by simply using df.Close.shift()
but if we want shifting by a specific time period, can try:
df['ret15min'] = (df.Close.shift(-15, freq="min") -df.Close)*100/df.Close
You can use conda to install mysql client!
https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen/52561058#52561058
> yum groupinstall Fonts