I write a lot of tests (nose based) involving DataFrame. Those tests should be readable by end-users. DataFrame constructors are not very friendly to read compared to a plain text table representation.
What about using a text representation like reStructured to construct/assert DataFrame ?
=========== =========== ========= ========= ========================
id1 id2 net nnet desc
(int64) (int64) (float64) (float64) (object)
----------- ----------- --------- --------- ------------------------
1001 1002 10.0 0.0 Closed part of queue
1002 0.0 3.0 Opened part of queue
=========== =========== ========= ========= ========================
The (dtype) line is useful to enforce the columns type to not fail on assert (could be optional).
I need community feedback before coding this reST DataFrame construct/assert feature. I also think about using ipython notebooks as test cases.
What is your preferred DataFrame representation when readability counts ?