Skip to content

Conversation

jmcnamara
Copy link
Contributor

Fix for writing Timestamp objects using the xlwt and xlsxwriter
engines. Both modules write Excel dates and times using
datetime.timedelta which differs from pandas.Timedelta. This
fix coerces Timestamp objects to datetime objects.

fixes #9139.

@jreback jreback added Bug IO Excel read_excel, to_excel labels Jan 2, 2015
@jreback jreback added this to the 0.16.0 milestone Jan 2, 2015
@jreback
Copy link
Contributor

jreback commented Jan 2, 2015

ok, this seems ok. pls add a release note (bug fix section).

Fix for writing Timestamp objects using the xlwt and xlsxwriter
engines. Both modules write Excel dates and times using
datetime.timedelta which differs from pandas.Timedelta. This
fix coerces Timestamp objects to datetime objects.

Issue #9139.
@jmcnamara
Copy link
Contributor Author

@jreback,

I've added a release note. Note 100% sure if it is in the correct place though. That is probably something that could be added to the Contributing.md doc as some stage.

If it is wrong let me know and I'll fix it.

Rebased and updated.

John

@jorisvandenbossche
Copy link
Member

Release note is fine!

@jreback
Copy link
Contributor

jreback commented Jan 5, 2015

see #9185. Going to steal your tests, but should work after that fix is done/merged.

@jreback
Copy link
Contributor

jreback commented Jan 15, 2015

replaced by #9257 (tests only are necesssary)

@jreback jreback closed this Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

to_excel incorrectly sets time to midnight for exported datetime column
3 participants