<reponame>ogiles1999/pandas_jsonlines
import numpy as np
import pandas as pd

null = np.nan

def read_jsonlines(filepath: str) -> pd.DataFrame:
        """Function that reads a jsonlines file as a pandas dataframe"""
        with open(filepath) as f:
            lines = f.read().splitlines()
        dicts = [eval(line) for line in lines]
        return pd.DataFrame(dicts)

import numpy as np
import pandas as pd

null = np.nan

def read_jsonlines(filepath: str) -> pd.DataFrame:
        """Function that reads a jsonlines file as a pandas dataframe"""
        with open(filepath) as f:
            lines = f.read().splitlines()
        dicts = [eval(line) for line in lines]
        return pd.DataFrame(dicts)
Function that reads a jsonlines file as a pandas dataframe