Home › Forums › kdb+ › Read JSON file output in KDB › Re: Read JSON file output in KDB
-
If you want to complete this with embedPy you will need the df2tab utility function
ml/util/utilities.q at master KxSystems/ml (github.com)
You can install the library following:
https://github.com/KxSystems/ml/tree/master?tab=readme-ov-file#installation
Or the function can also be defined stand alone if you prefer:
https://stackoverflow.com/a/51612291/4256419
//You cannot pass < as there is no automatic way to convert a dataframe to q readJSONFile:.p.get[`readJsonFile];
//Pass the embedPy foreign to df2tab to do the conversion out:df2tab[readJSONFile[fp]];