TheChymera / matrix2latex

Python/MATLAB matrix to LaTeX table converter, originally by Øystein Bjørndal
https://code.google.com/p/matrix2latex/
GNU General Public License v3.0
18 stars 8 forks source link

Support for pandas dataframe #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Provide some support for pandas dataframe objects. Example of failed session:
http://nbviewer.ipython.org/7398822

Original issue reported on code.google.com by obti...@gmail.com on 10 Nov 2013 at 2:30

GoogleCodeExporter commented 9 years ago
Hi there - is there any reason in particular you keep your code on googlecode 
(rather than on github)? As we discussed here 
https://github.com/gpoore/pythontex/issues/20#issuecomment-28128585 I may 
contribute if I figure out how, but I am very unfamiliar with mercurial. How 
would I submit a pull request?

Original comment by horea.ch...@gmail.com on 10 Nov 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Because mercurial is easier :) In my opinion git is design for huge projects, 
which is great, but becomes a hassle for smaller ones like this.

If you have code to share simply attach a diff to this issue.

Original comment by obti...@gmail.com on 10 Nov 2013 at 2:59

GoogleCodeExporter commented 9 years ago
Hah :) haven't tested it for multi-index yet, but this may just save me a lot 
of work, and solve the issue. why don't you try to push your code to 
scipy/numpy? - it seems to make a bit more sense to have the functionality 
applied like a method rather than via a separate software package.

http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.to_latex.htm
l

Original comment by horea.ch...@gmail.com on 10 Nov 2013 at 3:04

GoogleCodeExporter commented 9 years ago
New version released. Lots of minor stuff I have had on my own computer for a 
while. Your example no longer crashes! (I added a conditional call to 
DataFrame.to_records())

I plan to add some more support for Pandas, feel free to send me further 
examples of stuff you would expect to work.

Original comment by obti...@gmail.com on 16 Nov 2013 at 6:10

GoogleCodeExporter commented 9 years ago
The newest version at 2013-11-30 has even greater support for pandas. The doc 
has examples for both pandas.Series and pandas.DataFrame. Reopen if you 
experience any issues.

Original comment by obti...@gmail.com on 30 Nov 2013 at 1:46