我有不同的数据框遵循这个例子:'AAPLdf,AMZNdf,GOOGLdf,......'等等
import matplotlib.pyplot as plt
from mpl_finance import candlestick_ohlc
import pandas as pd
import matplotlib.dates as mpl_dates
ticker = input("ticker:") + "df"
data = ticker
ohlc = data.loc[:, ['t', 'o', 'h', 'l', 'c']]
AttributeError:“str”对象没有属性“loc”