how to open ndjson file in python
import ujson as json
import pandas as pd
path = "to/dir/of/file.ndjson"
records = map(json.loads, open(path, encoding="utf8"))
df = pd.DataFrame.from_records(records)
Are there any code examples left?
New code examples in category Python