我有这行有效的代码:
results_percentage = results_percentage.set_index('date').dropna(how='all').resample('M').last()当我尝试使用 forloop 来完成同样的工作时,它不起作用。(我稍后需要使用 y ):
list_a = [ (results_percentage, "results_percentage")]
for x, y in list_a :
x = x.set_index('date').dropna(how='all').resample('M').last()
慕哥9229398
侃侃尔雅
随时随地看视频慕课网APP
相关分类