| license: mit | |
| # Animals Dataset | |
| This dataset contains information about various animals. | |
| ## File | |
| - `animals.jsonl` | |
| ## Columns / Fields | |
| - `id` β unique identifier | |
| - `name` β common name of the animal | |
| - `species` β scientific name | |
| - `habitat` β natural habitat | |
| - `diet` β dietary type | |
| ## Usage | |
| Load in Python: | |
| ```python | |
| import json | |
| animals = [] | |
| with open("animals.jsonl", "r") as f: | |
| for line in f: | |
| animals.append(json.loads(line)) | |
| print(animals[:5]) |