Skip to content

Commit

Permalink
Readme update and styling tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
chicolucio committed Nov 8, 2023
1 parent 6d78cb0 commit 4cf0fcf
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 765 deletions.
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ It is a fork of *truths* by [tr3buchet](https://github.com/tr3buchet/truths).

![Multiple outputs](https://raw.githubusercontent.com/chicolucio/truth-table-generator/master/images/ttg_small.png)

[![Build Status](https://travis-ci.com/chicolucio/truth-table-generator.svg?branch=master)](https://travis-ci.com/chicolucio/truth-table-generator)
[![Updates](https://pyup.io/repos/github/chicolucio/truth-table-generator/shield.svg)](https://pyup.io/repos/github/chicolucio/truth-table-generator/)
[![Python 3](https://pyup.io/repos/github/chicolucio/truth-table-generator/python-3-shield.svg)](https://pyup.io/repos/github/chicolucio/truth-table-generator/)
[![codecov](https://codecov.io/gh/chicolucio/truth-table-generator/branch/master/graph/badge.svg)](https://codecov.io/gh/chicolucio/truth-table-generator)

It merges some of the pull requests in the original and other external helpers.
The following are some of the changes and enhancements from the original:

Expand Down Expand Up @@ -208,14 +203,11 @@ print(table.as_tabulate(index=False, table_format='latex'))
### Formatting options with Pandas

With an IPython terminal or a Jupyter Notebook, it is possible to render a Pandas
DataFrame with `table.as_pandas()`:
DataFrame with `table.as_pandas`:

![pandas01](https://raw.githubusercontent.com/chicolucio/truth-table-generator/master/images/pandas01.png)

And this output can be modified with Pandas Styling

![pandas02](https://raw.githubusercontent.com/chicolucio/truth-table-generator/master/images/pandas02.png)

And this output can be modified with Pandas Styling.
More advanced modifications can be done with functions that apply styling changes.
See the [styles tutorial notebook](styling_tutorial.ipynb) for examples.
See the image below for a fancy example with two lines and two columns
Expand Down Expand Up @@ -248,7 +240,7 @@ table_val.valuation()
```
'Tautology'
```
If a integer is used as argument, the function classifies the correspondent
If an integer is used as argument, the function classifies the correspondent
column:
```python
table_val.valuation(3)
Expand Down
Binary file modified images/pandas01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/pandas02.png
Binary file not shown.
Loading

0 comments on commit 4cf0fcf

Please sign in to comment.