Parquet file is corrupted while reading

#7
by subharajesh26 - opened

I would like to download the file and turn it into JSON. This isn't writing when I attempt it with to_json(). Attempting to view the "verified" "asm" parquet yields an error message stating that "Parquet magic bytes not found in footer." It appears that the file is either corrupted or not a parquet file. I would be grateful for any leads.

AI4Bharat org

Hey @subharajesh26 Could you share your code snippet for loading the dataset and conversion.

AI4Bharat org

@subharajesh26 Also try the following code snippet and reach out if any further help required.

from datasets import load_dataset
asm = load_dataset("ai4bharat/sangraha", data_dir="verified/asm")
asm["train"].to_json("asm.json")
sangraha.to_json("asm.json")```

This is the snippet. Also I have tried which you have mentioned. But got an error datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in ai4bharat/sangraha
AI4Bharat org

@subharajesh26 Hey, Could you share the latest code snippet you executed along with the error logs for the above.

asm = load_dataset("ai4bharat/sangraha", data_dir="verified/asm")
asm["train"].to_json("asm.json")``` 
This is working fine. Thank you for the response. I am closing this discussion.
subharajesh26 changed discussion status to closed

Sign up or log in to comment