Compute max close in Python

import pandas as pd

def get_max_close(symbol):
df = pd.read_csv("data/{}.csv".format(symbol))
return df['Close'].max()

def test_run():
"""Function called by Test Run."""
for symbol in ['ASHOKLEY', 'ITC']:
print("Max close")
print(symbol, get_max_close(symbol))

if __name__ == "__main__":
test_run()
(Visited 14 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
19 + 15 =