Skip to content

devoli170/python_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

non-cohesive collection of my python code. The package is not published on pypi. Maybe at a later point.

La_edu

matrix_to_ascii

>>> from la_edu.matrix_to_ascii import *
>>> import numpy as np
>>> array = np.arange(8)
>>> array = array.reshape((2,4))
>>> decorate(array)
'┌         ┐\n| 0 1 2 3 |\n| 4 5 6 7 |\n└         ┘'
>>> print(decorate(array))
┌         ┐
| 0 1 2 3 |
| 4 5 6 7 |
└         ┘
>>> array = array.reshape((4,2))
>>> print(decorate(array))
┌     ┐
| 0 1 |
| 2 3 |
| 4 5 |
| 6 7 |
└     ┘
>>> array = array.reshape((1,8))
>>> print(decorate(array))
┌                 ┐
| 0 1 2 3 4 5 6 7 |
└                 ┘
>>>

About

Non-cohesive repo for my python projects/snippets/...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published