mirror of
https://github.com/KevinMidboe/tableprint.git
synced 2025-10-29 01:40:17 +00:00
updating docs
This commit is contained in:
@@ -117,12 +117,17 @@ todo_include_todos = True
|
|||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
html_theme = 'default'
|
html_theme = 'alabaster'
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
# documentation.
|
# documentation.
|
||||||
#html_theme_options = {}
|
html_theme_options = {
|
||||||
|
'description': 'Pretty printing of tabular data',
|
||||||
|
'github_user': 'nirum',
|
||||||
|
'github_repo': 'tableprint',
|
||||||
|
'fixed_sidebar': True,
|
||||||
|
}
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
#html_theme_path = []
|
#html_theme_path = []
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
|
==========
|
||||||
Tableprint
|
Tableprint
|
||||||
----------
|
==========
|
||||||
|
|
||||||
Tableprint is a library for printing out numerical data in Ascii formatted tables. Check it out on `Github`_!
|
About
|
||||||
|
-----
|
||||||
|
Tableprint is a library for printing out numerical data in Ascii formatted tables. Check it out on `github`. You can use it to print single rows of data at a time (useful for printing ongoing computation results).
|
||||||
|
|
||||||
.. _Github: https://github.com/nirum/tableprint/
|
.. _Github: https://github.com/nirum/tableprint/
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
Using ``pip``:
|
||||||
First, we need to install the module. We can do that using ``pip``:
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
@@ -16,8 +18,7 @@ First, we need to install the module. We can do that using ``pip``:
|
|||||||
|
|
||||||
Quickstart
|
Quickstart
|
||||||
----------
|
----------
|
||||||
|
Tableprint offers two functions that print a table directly,
|
||||||
Now let's see what we can do. Tableprint offers two functions that print a table directly,
|
|
||||||
``tableprint.table`` and ``tableprint.dataframe``. The first takes a numpy array and a list of
|
``tableprint.table`` and ``tableprint.dataframe``. The first takes a numpy array and a list of
|
||||||
headers, whereas the second takes a pandas DataFrame as input. For example, you can do the following:
|
headers, whereas the second takes a pandas DataFrame as input. For example, you can do the following:
|
||||||
|
|
||||||
@@ -53,10 +54,8 @@ what unicode or ascii characters to use to build the table. The available styles
|
|||||||
|
|
||||||
API
|
API
|
||||||
---
|
---
|
||||||
|
|
||||||
Tableprint comes with a number of options, these are fully described below:
|
|
||||||
|
|
||||||
.. autofunction:: tableprint.table
|
.. autofunction:: tableprint.table
|
||||||
|
.. autofunction:: tableprint.TableContext
|
||||||
.. autofunction:: tableprint.dataframe
|
.. autofunction:: tableprint.dataframe
|
||||||
.. autofunction:: tableprint.banner
|
.. autofunction:: tableprint.banner
|
||||||
.. autofunction:: tableprint.header
|
.. autofunction:: tableprint.header
|
||||||
|
|||||||
Reference in New Issue
Block a user