datetime.date ticks not handled by datarray_to_string #34

Closed
kwgoodman opened this Issue Oct 13, 2010 · 1 comment

Projects

None yet

2 participants

@kwgoodman
Contributor
>> from datarray.datarray import DataArray 
>> from datarray.print_grid import datarray_to_string

Good:

>> print datarray_to_string(DataArray([[1,2],[3,4]], [('row', ('a', 'b')),('col', ('c', 'd'))]))
row       col                
--------- -------------------
          c         d        
a                 1         2
b                 3         4

Should datetime.date tick be printed as its string?

>> from datetime import date as D
>> print datarray_to_string(DataArray([[1,2],[3,4]], [('row', ('a', D(2010,1,1))),('col', ('c',   'd'))]))
row       col                
--------- -------------------
          c         d        
a                 1         2
<9         3         4
@terhorst terhorst added a commit to terhorst/datarray that referenced this issue Jun 9, 2011
@terhorst terhorst fixes bug #34 1e2cfd3
@terhorst terhorst added a commit to terhorst/datarray that referenced this issue Jun 9, 2011
@terhorst terhorst fixes bug #34 26f548d
@terhorst terhorst added a commit to terhorst/datarray that referenced this issue Jun 11, 2011
@terhorst terhorst fixes bug #34 41cea54
@terhorst
Contributor

Fixed in b7af9f1

@terhorst terhorst closed this Jun 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment