-
-
Notifications
You must be signed in to change notification settings - Fork 592
Closed
Description
version: 3.5.0
python 3.11
I'm trying to export the same dataset several times in different file formats. I've found that specifying a formatter for a column data alters the underlying data. The issue occurs if exporting the same format too.
import tablib
dataset = tablib.Dataset()
dataset.headers = ["text"]
dataset.append(["aAbBcC"])
dataset.add_formatter("text", lambda s: s[2:])
print(dataset.export("csv"))
print(dataset.export("csv"))Output:
text
bBcC
text
cC
Metadata
Metadata
Assignees
Labels
No labels