Big refactoring, way simpler management of transformations. Early branch for upcoming version 0.2.
This commit is contained in:
21
examples/basics_file_csv.py
Normal file
21
examples/basics_file_csv.py
Normal file
@ -0,0 +1,21 @@
|
||||
import os
|
||||
|
||||
from bonobo import CsvReader, Graph
|
||||
|
||||
__path__ = os.path.dirname(__file__)
|
||||
|
||||
|
||||
def skip_comments(line):
|
||||
if not line.startswith('#'):
|
||||
yield line
|
||||
|
||||
|
||||
graph = Graph(
|
||||
CsvReader(path=os.path.join(__path__, 'datasets/coffeeshops.txt')),
|
||||
print,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import bonobo
|
||||
|
||||
bonobo.run(graph)
|
||||
Reference in New Issue
Block a user