- changed status to resolved
writing pandas DataFrame might fail
Issue #50
resolved
In SavWwriter.writerows
elif pandasOK and isinstance(records, pd.DataFrame):
records[records.isnull()] = self.sysmis
for record in records.itertuples(index=False):
self.writerow(list(record))
the line records[records.isnull()] = self.sysmis
should probably be replaced with
records = records.fillna(self.sysmis)
. This is needed when the DataFrame contains chars.
Comments (1)
-
reporter - Log in to comment
fixed issue
#50, writing pandas.DataFrame that also includes dtype of type np.object.→ <<cset 643d8d74e264>>