Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- def prediction(df):
- mean_close = round(df["Adj Close"].tail(10).mean(), 4)
- return mean_close
- def main():
- df = pd.read_csv("Equity.csv")
- predicted_close = prediction(df)
- print(predicted_close)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement