fists9 / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

Pandas DataFrame Table Factory #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've coded a table factory for creating PrettyTable objects from pandas 
DataFrames. There are no additional imports required and the code is derived 
from the pandas source code, so it should be pretty safe.

The code is included in the attached patch to the 0.7.2 version. Hope you find 
it useful.

All the best,

Mat

Original issue reported on code.google.com by topper.h...@gmail.com on 16 Nov 2014 at 7:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry, I'm not sure this can be done robustly without importing pandas and 
numpy, so I've deleted the patch.

All the best,

Mat

Original comment by topper.h...@gmail.com on 16 Nov 2014 at 10:28

GoogleCodeExporter commented 9 years ago
Hi Mat,

Thanks very much for trying this out.  I actually think it's a nice feature and 
it's a shame that it didn't work out.  I'd be happy to discuss the details with 
you via email if you were interested.  If we can get it working "robustly 
enough" without importing pandas, it may still be worth including with 
appropriate warnings in the documentation.

Cheers,
Luke

Original comment by luke@maurits.id.au on 16 Nov 2014 at 10:34