当将两个数据帧obj传递给func时,它正确。 在使用partial时,它说:
[Authorize]
public class SignalRSignalHub : Hub
{
public override Task OnConnectedAsync()
{
var context = Context.GetHttpContext();
return base.OnConnectedAsync();
}
}
这是测试代码? 有人知道为什么吗?
TypeError: fall() got multiple values for argument 'dfn'
此外,
正确from functools import partial
from multiprocessing import Pool
import pandas as pd
def fall(dfn,x):
return dfn,x
if __name__ == "__main__":
df=pd.DataFrame([['a'],['b']])
dfxn=pd.DataFrame([['c'],['d']])
print(fall(dfxn,df))
f=partial(fall,dfn=dfxn)
print(f(df))