The below code:
Code: Select all
>>> import numpy as np
>>> import pandas as pa
>>> import pyeviews as evp
>>> dtsa = pa.date_range('1998', periods = 3, freq = 'A')
>>> benchmark = pa.Series([4000.,4161.4,np.nan],index=dtsa, name = 'benchmark')
>>> eviewsapp = evp.GetEViewsApp(instance='new', showwindow=True)
>>> evp.PutPythonAsWF(benchmark, app=eviewsapp)
The error appears to be linked to the last line of the code (the PutPythonAsWF function). Would appreciate some guidance. Thanks!AttributeError: 'DataFrame' object has no attribute 'attrs'