The below code calculates the values for an indicator ( for example, say SMA) for all the values of the close price in a dataframe:
import pandas_ta as pta d