|
|
--- |
|
|
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) |