Ask Your Question

Revision history [back]

One way to obtain tables that display nicely is to use the Pandas package.

import pandas as pd
pd.DataFrame(data={'a': [100, 4], 'b': [2, 5], 'c': [3, 60]}, index=['aa', 'bb'])

To use it in Sage, you first need to install it.

This can be done by running this in the terminal:

sage --pip install pandas