Comment ouvrir le fichier ndjson dans 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)
Average Ape