【python】pandas 的 apply函数方法 如何获取当前行的行索引

pandas 的 apply函数方法 如何获取当前行的行索引
废了好大的劲才找到 x.name

  pd_insert['data_date'] = pd_insert.apply(
          lambda x: get_date(x.name, x['forecast_date']), axis=1)

你可能感兴趣的:(python,python,pandas,数据挖掘)