Issue
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?
Solution
You can use Pandas for that.
import pandas as pd
print pd.DataFrame(yourArray)
Answered By - Konstantinos Michael
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.