jomarie04 commited on
Commit
7fcf727
·
verified ·
1 Parent(s): f6b625e

Update README.md

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