我想在公式中向Row()函数添加前缀
=ArrayFormula(if(R1:R<>"",row(T1:T),""))
似乎很简单,我正在尝试
=ArrayFormula(if(R1:R<>"",'prfix'&row(T1:T),""))
但是我收到“公式解析错误”
谢谢
答案 0 :(得分:0)
这只是您的格式。试试这个:
v1=pd.to_datetime(df.start,format='%H:%M:%S').values
v2=pd.to_datetime(df.end,format='%H:%M:%S').values
bins=pd.to_datetime(bins,format='%H:%M:%S')
np.sum(((v1-bins[:,None])<=np.timedelta64(0,'ns'))&((v2-bins[:,None])>np.timedelta64(0,'ns')),1)
Out[529]: array([0, 0, 1, 1, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0])