Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/misc-python. All my Python code for class or other things.
Something went wrong. Try again.
123456789101112131415import pandas as pdimport statsmodels.api as sm
def priceRet(input_prices): returns = ["-"] for i in range(1,len(input_prices)): return_in_position_i = np.log(input_prices[i])-np.log(input_prices[i-1]) returns.append(return_in_position_i) return returns
key = pd.read_excel("excel_key_events_2.xlsx"
print(key)