Skip to content

Commit

Permalink
Merge pull request #45 from tompollard/tidying
Browse files Browse the repository at this point in the history
Generate remarks for __repr__ as well as _repr_html_
  • Loading branch information
tompollard committed Mar 20, 2018
2 parents f606676 + 3935fb0 commit af7be64
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 230 deletions.
13 changes: 5 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,12 @@ Example

#. Optionally, a list of columns to be included in Table 1::

columns = ['time','age','bili','chol','albumin','copper',
'alk.phos','ast','trig','platelet','protime',
'status', 'ascites', 'hepato', 'spiders', 'edema',
'stage', 'sex', 'trt']
columns = ['age','bili','albumin','ast','platelet','protime',
'ascites','hepato','spiders','edema','sex', 'trt']

#. Optionally, a list of columns containing categorical variables::

categorical = ['status', 'ascites', 'hepato', 'spiders', 'edema',
'stage', 'sex']
categorical = ['ascites','hepato','edema','sex','spiders','trt']

#. Optionally, a categorical variable for stratification and a list of non-normal variables::

Expand All @@ -66,7 +63,7 @@ Example

#. Type the name of the instance in an interpreter::

mytable.tableone
mytable

#. ...which prints the following table to screen::

Expand Down Expand Up @@ -163,4 +160,4 @@ Example

#. Tables can be exported to file in various formats, including LaTeX, Markdown, CSV, and HTML. Files are exported by calling the ``to_format`` method on the DataFrame. For example, mytable can be exported to a CSV named 'mytable.csv' with the following command::

mytable.tableone.to_csv('mytable.csv')
mytable.to_csv('mytable.csv')
Loading

0 comments on commit af7be64

Please sign in to comment.