Closed anuveyatsu closed 5 years ago
Looking at code here https://github.com/datahq/dataflows/blob/master/dataflows/processors/load.py#L80-L87
It expects the source object to be either tuple or string so may be I need to convert my list into a tuple?
To load data from a list of dictionaries (or any iterator, really), just add it to the flow - no need to use load
:
e.g.
data = [
dict(a=1, b=2),
dict(a=2, b=3),
]
Flow(
data, printer()
).process()
Thanks @akariv closing this issue
@akariv should that example be in docs?
Trying to load inline data as described in the tabulator docs - https://github.com/frictionlessdata/tabulator-py#inline-read-only
But it raises the following error. Looks like it's expecting string not list object as a source. I thought there is a way to tell that this source is inlined data and tried to specify
format='inline'
but it didn't help: