File size: 599 Bytes
7fcf727 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
license: mit
---
# Books Dataset
This dataset contains information about popular books from various genres and authors.
## File
- `books.jsonl`
## Columns / Fields
- `id` – unique identifier for each book
- `title` – title of the book
- `author` – author of the book
- `genre` – genre of the book
- `published_year` – year the book was published
## Sample Usage
Load the dataset in Python:
```python
import json
books = []
with open("books.jsonl", "r") as f:
for line in f:
books.append(json.loads(line))
# Print first 5 books
for book in books[:5]:
print(book) |