I've got an 18x18 2d numpy array (it's a confusion matrix)...and I need/would like to display it as a table in an ipython notebook.
When I simply print it out, it displays with overlap--the rows are so long they take up two lines.
Is there a library that will allow me to print this array in a sort of spreadsheet format?
You can use Pandas for that.
import pandas as pd
print pd.DataFrame(yourArray)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With