in the white paper: pyeviews.PutPythonAsWF(object, app=None, newwf=True)
pagename: string, optional.
Name of the EViews workfile page to be created
It seems that this "pagename" paramter is not implemented
Code: Select all
import numpy as np
import pandas as pa
#the annual series "benchmark" and the quarterly series "indicator"
dtsa = pa.date_range('1998', periods = 3, freq = 'A')
benchmark = pa.Series([4000.,4161.4,np.nan], index=dtsa, name = 'benchmark')
dtsq = pa.date_range('1998q1', periods = 12, freq = 'Q')
indicator = pa.Series([98.2, 100.8, 102.2, 100.8, 99., 101.6, 102.7, 101.5, 100.5, 103., 103.5, 101.5], index = dtsq, name = 'indicator')
#create pages for the benchmark and indicator series
import pyeviews as evp
eviewsapp = evp.GetEViewsApp(instance='new', showwindow=True)
evp.PutPythonAsWF(benchmark, app=eviewsapp, pagename='annual')
the last line results in an error
TypeError: PutPythonAsWF() got an unexpected keyword argument 'pagename'