Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pretty_print(a, row='row', col='col'):
- """Pretty printing tables"""
- n, m = a.shape
- row_name = ['{}{}'.format(row, i + 1) for i in range(n)]
- col_name = ['{}{}'.format(col, i + 1) for i in range(m)]
- print(pd.DataFrame(a, row_name, col_name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement