how to open ndjson file in python code example
Example: 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)