I am pretty new to polars and have been working around it just to get acquainted.
import polars as pl
filename_data = 'endomondoHR.json'
pl.read_json(filename_data)
Data -> kaggle data
The error I am getting is :
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
c:\Users\shiv\Desktop\test\test.ipynb Cell 13 in <cell line: 4>()
1 import polars as pl
2 filename_data = 'endomondoHR.json'
----> 4 pl.read_json(filename_data)
File c:\Users\shiv\miniconda3\lib\site-packages\polars\io.py:985, in read_json(file)
971 def read_json(file: str | Path | IOBase) -> DataFrame:
972 """
973 Read into a DataFrame from a JSON file.
974
(...)
983
984 """
--> 985 return DataFrame._read_json(file)
File c:\Users\shiv\miniconda3\lib\site-packages\polars\internals\dataframe\frame.py:959, in DataFrame._read_json(cls, file)
956 file = normalise_filepath(file)
958 self = cls.__new__(cls)
--> 959 self._df = PyDataFrame.read_json(file, False)
960 return self
RuntimeError: BindingsError: "ComputeError(Owned(\"InvalidEOF\"))"
Useful informations :
Python version : 3.9.13 Windows 11, 16GB RAM, Intel Core i5-11400H, NVIDIA-GeForce GTX 1650 with 4GB GDDR6 dedicated VRAM Data size 6.6 GB
What are the reasons for the error can anybody help? Thanks