You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from xlwings import Workbook, Range
import pandas as pd
import numpy as np
dt = np.datetime64(1434149887000,'ms')
data_list = np.empty(1, dtype=np.float64)
data_list[:] = 1
dti = pd.DatetimeIndex(data=[dt],tz='GMT')
df = pd.DataFrame(data=data_list, index=dti, columns=['A'])
wb = Workbook()
Range('A1',wkb=wb).value = df
The code will work if line dti = pd.DatetimeIndex(data=[dt],tz='GMT') is changed to dti = pd.DatetimeIndex(data=[dt]).
We found that it hangs during the last line of the main.py Range value method: xlplatform.set_value(xlplatform.get_range_from_indices(self.xl_sheet, self.row1, self.col1, row2, col2), data).
The text was updated successfully, but these errors were encountered:
fzumstein
changed the title
xlwings hangs when using a pandas dataframe with timezone aware datetimeindex
Various issues with timezone aware datetime objects (datetime, numpy, pandas)
Sep 26, 2015
Replicate with the following code:
The code will work if line
dti = pd.DatetimeIndex(data=[dt],tz='GMT')
is changed todti = pd.DatetimeIndex(data=[dt])
.We found that it hangs during the last line of the main.py Range value method:
xlplatform.set_value(xlplatform.get_range_from_indices(self.xl_sheet, self.row1, self.col1, row2, col2), data)
.The text was updated successfully, but these errors were encountered: