插入一列
today = datetime.today()
date=today.strftime('%Y%m%d')
hd_date = [date for i in range(0, len(to_hd))]
to_hd.insert(0,'hd_date',to_hd)
插入一行
st.loc[9]=new
st.loc[10,'当前价']
or
new=['中国石油',300001,262,263,10,10,10,10,10,10,0.1,0,0,10,10,'深圳',0,'nan','nan']
newt=pd.DataFrame(new).T
newt.columns = st.columns
st=pd.concat([st,newt],ignore_index=True)
st=st.reset_index(drop=True)