Skip to content

saspy sasstat() results as text? #484

Answered by tomweber-sas
mrmorgan17 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, you're right, any tabular output from the analytic methods isn't being rendered as TEXT when results='text' (non-tabular, like plots graphs ..., will only be returned as HTML). But, they will be returned as Pandas DataFrames when you use the default results='PANDAS'.

>>> res.FITSTATISTICS
<IPython.core.display.HTML object>
>>> sas.set_results('pandas')
>>> res.FITSTATISTICS
           Label1    cValue1     nValue1    Label2 cValue2   nValue2
0        Root MSE   41.10897   41.108975  R-Square  0.6755  0.675460
1  Dependent Mean  215.87793  215.877934  Adj R-Sq  0.6739  0.673926
2       Coeff Var   19.04269   19.042694       NaN     NaN  0.000000
>>> df = res.FITSTATISTICS
>>> type(df)…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrmorgan17
Comment options

Answer selected by mrmorgan17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants