A tool to convert array into latex tables
Project description
Arraytolatex
============
It converts NumPy's arrays into valid LaTeX tables. I use NumPy a lot, and it is always the case that I wanted to convert some array to latex. I wanted something that `imported' in my jupyter notebook such that when I get my results I will directly convert them into LaTeX table (as oppose of converting them into a csv file, and then convert that into LaTeX using other service)
In my thesis, I used <https://www.tablesgenerator.com> which is really cool and very awesome. But it is not what I wanted, the step of converting into csv, and then uploading to the website was just not the very best way to do that.
TODO:
- Include Pandas dataframes. I could already done that lazily by detecting the input type and then convert it to numpy and the rest of the code will be unchanged.
- Refactoring the code, etc. It is a must. The code is horrible, yet it works, efficiently? I guess
- Adding comments, using more informative names for variables. I really wish I could found something more informative than string_arry.
- Please, this code is yours fork it modify it pull request, so that we have a better tool that will be the standard tool to convert NumPy arrays and other arrays into LaTeX tables.
============
It converts NumPy's arrays into valid LaTeX tables. I use NumPy a lot, and it is always the case that I wanted to convert some array to latex. I wanted something that `imported' in my jupyter notebook such that when I get my results I will directly convert them into LaTeX table (as oppose of converting them into a csv file, and then convert that into LaTeX using other service)
In my thesis, I used <https://www.tablesgenerator.com> which is really cool and very awesome. But it is not what I wanted, the step of converting into csv, and then uploading to the website was just not the very best way to do that.
TODO:
- Include Pandas dataframes. I could already done that lazily by detecting the input type and then convert it to numpy and the rest of the code will be unchanged.
- Refactoring the code, etc. It is a must. The code is horrible, yet it works, efficiently? I guess
- Adding comments, using more informative names for variables. I really wish I could found something more informative than string_arry.
- Please, this code is yours fork it modify it pull request, so that we have a better tool that will be the standard tool to convert NumPy arrays and other arrays into LaTeX tables.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
array2latex-0.3.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for array2latex-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c314354b9627627120fb0e5deb64f92da761be1ce42fd6395c623a4854f8a3cf |
|
MD5 | f43c35ec94e1cdeccd7197bf1fbe7d5e |
|
BLAKE2b-256 | 8965bf9d084128cf2c9607aaabc38a15cb173813fa4080ab353a7f641cd61605 |