This notebook shows how you can save your time using datapot utils module's functions.
In [1]:
import pandas as pd
df = pd.read_csv('../data/example_csv_file.csv', delimiter=';')
df
Out[1]:
In [2]:
from datapot.utils import csv_to_jsonlines
csv_to_jsonlines('../data/example_csv_file.csv', '../data/example_jsonlines_file.jsonlines', delimiter=';')
In [3]:
with open('../data/example_jsonlines_file.jsonlines', 'r') as ftr:
for s in ftr.readlines():
print(s)
In [ ]: