Skip to content

Commit

Permalink
resolves #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed Nov 8, 2021
1 parent 51354e5 commit ffca3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xlcompose/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,11 @@ def _format_validation(self, formats):
idx = self.data.index.to_frame().dtypes
idx.index = [self.data.columns.name]
else:
idx = pd.Series()
idx = pd.Series(dtype='object')
cols = self.data.dtypes.append(idx)
self.formats = {
k: self.base_formats.get(v, self.base_formats['object'])
for k, v in dict(cols).items()}
for k, v in dict(zip(cols.index, cols.values)).items()}
if type(formats) is list:
self.formats.update(dict(zip(self.data.columns, formats)))
elif type(formats) is str:
Expand Down

0 comments on commit ffca3f5

Please sign in to comment.