Advertisement
sesquiipedalian

Untitled

Jul 29th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. def prediction(df):
  4. mean_close = round(df["Adj Close"].tail(10).mean(), 4)
  5. return mean_close
  6.  
  7. def main():
  8. df = pd.read_csv("Equity.csv")
  9. predicted_close = prediction(df)
  10. print(predicted_close)
  11.  
  12. if __name__ == '__main__':
  13. main()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement