我看到了这样写的函数:
def transform(self, data):
mtdReturnData = data. \
rename('MTDReturn', 'TimeSeriesValue'). \
addfield('FundID', 7). \
addfield('TimeSeriesTypeID', 38)
# remaining step is to figure out formular for last price
lastPriceData = mtdReturnData. \
rename('TimeSeriesValue', 'MTDReturn'). \
min_date = min(df['EffectiveDate']). \
addfield('TimeSeriesValue', lambda x: x['MTDReturn'] * 2). \
cutout('MTDReturn'). \
convert('TimeSeriesTypeID', 12)
return mtdReturnData, lastPriceData
无法真正理解. \
的作用,是否只是为链式方法创建了一个新行?