Hello there
In my notebook i'm producing factors within a pipeline.
Is it possible for me to add a column to the output so that I can see the number of "longs" and "shorts" signals for each day?
# Create pipeline
return Pipeline(
columns={
'number of shorts': len(shorts),
'number of longs': len(longs),
},
screen=long_short_screen
)
# return pipe
result = run_pipeline(make_pipeline(), '2018-10-26', '2018-10-26')
print len(result)
result.head(len(result))
When I try the above code i get the following error:
TypeError: object of type 'NumExprFilter' has no len()
Thanks in advance :-)