Skip to content

BUG: Fix for Timestamp handling in xlwt and xlsxwriter engines. #9175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

BUG: Fix for Timestamp handling in xlwt and xlsxwriter engines. #9175

wants to merge 1 commit into from

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