Re: [O] org-mode and python pandas

2015-04-29 Thread Dror Atariah
Using the tabulate python module it is possible to have the following "inline" workaround: 8<8<8<8<8<8<8< #+BEGIN_SRC python :results raw import pandas as pd import numpy as np from tabulate import tabu

Re: [O] org-mode and python pandas

2015-04-28 Thread Dov Grobgeld
I returned to this issue recently and tried to get the ob-python to output a table with a header, but didn't manage. Here is the code: #+BEGIN_SRC python :colnames true return [['','A','B','C'], [0,0.628365,0.424279,0.619791], [1,0.799666,0.527572,0.132928]] #+END_SRC #+RESULTS: |

Re: [O] org-mode and python pandas

2013-07-03 Thread Eric Schulte
Dov Grobgeld writes: > Thanks for the answers, but there is still something missing in order > to get it to work. Part of it seems to be connected to the python > parsing. E.g. the following translation of Eric's sh example doesn't > output correctly with python: > > > #+BEGIN_SRC python :results

Re: [O] org-mode and python pandas

2013-07-03 Thread Rasmus
Hi Dov, > Another related question is if there is any support for header tables? > I.e. instead of this: > > | |A |B |C | > | 0 | 0.827817 | 0.664009 | 0.089161 | > | 1 | 0.170031 | 0.729214 | 0.110918 | > | 2 | 0.575918 | 0.863924 | 0.757536 | > | 3 | 0.682722 | 0.774445

Re: [O] org-mode and python pandas

2013-07-03 Thread Dov Grobgeld
Thanks for the answers, but there is still something missing in order to get it to work. Part of it seems to be connected to the python parsing. E.g. the following translation of Eric's sh example doesn't output correctly with python: #+BEGIN_SRC python :results output print """,A,B,C 0,0.628365,

Re: [O] org-mode and python pandas

2013-07-01 Thread Rasmus
Achim Gratz writes: >>> 2. Add to pandas the option of globally influencing the text >>> formatting so that it outputs something more parsable by org-mode. >> >> This sounds promising, if pandas support csv output that will be >> correctly parsed by Org-mode. > > The package already has CSV expor

Re: [O] org-mode and python pandas

2013-07-01 Thread Achim Gratz
Eric Schulte writes: >> | |A |B |C | >> |---+--+--+--| >> | 0 | 0.827817 | 0.664009 | 0.089161 | >> | 1 | 0.170031 | 0.729214 | 0.110918 | >> | 2 | 0.575918 | 0.863924 | 0.757536 | >> | 3 | 0.682722 | 0.774445 | 0.992041 | >> > > What happens if you

Re: [O] org-mode and python pandas

2013-06-30 Thread Eric Schulte
Dov Grobgeld writes: > Has anyone used org-mode with the python pandas package? Pandas is in > a certain way an alternative to R, but with the (for me) familiar > syntax of python. See: http://pandas.pydata.org/ > > Pandas is very much built to be used interactively, and it outputs its > data in