basically I have 2 diferents codes but both do the same, should i do it one way or the other, whats is the diference
import pandas as pd
data = pd.read_excel('AAPL.xlsx',sheet_name="Hoja1")
data['intra'] = (((data['close'])/data['open']-1)*100)
data
what is the diference between this code and the following
import pandas as pd
data = pd.read_excel('AAPL.xlsx',sheet_name="Hoja1")
data['intra'] = ((data.close / data.open -1)*100)
data