Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 36 new columns ({'n_places', 'work_key', 'languages', 'publish_place', 'subtitle', 'authors', 'n_isbn', 'publication_decade', 'number_of_pages_median', 'already_read_count', 'subjects', 'source_subject', 'title', 'ratings_count', 'title_word_count', 'n_authors', 'primary_author', 'title_length', 'n_languages', 'n_ia_scans', 'n_subjects', 'completion_rate', 'has_fulltext', 'readinglog_count', 'ebook_access', 'currently_reading_count', 'ratings_average', 'n_people', 'edition_count', 'want_to_read_count', 'publisher', 'n_times', 'age_years', 'public_scan', 'n_publishers', 'first_publish_year'}) and 3 missing columns ({'data_type', 'column', 'description'}).

This happened while the csv dataset builder was generating data using

hf://datasets/EduDevCommons/open-library-book-catalogue/open_library_books.csv (at revision 4c7b176dec42755b29e69c368466a8729675d15d), ['hf://datasets/EduDevCommons/open-library-book-catalogue@4c7b176dec42755b29e69c368466a8729675d15d/data_dictionary.csv', 'hf://datasets/EduDevCommons/open-library-book-catalogue@4c7b176dec42755b29e69c368466a8729675d15d/open_library_books.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              work_key: string
              title: string
              subtitle: string
              primary_author: string
              n_authors: int64
              authors: string
              first_publish_year: double
              publication_decade: string
              age_years: double
              n_languages: int64
              languages: string
              n_subjects: int64
              subjects: string
              n_people: int64
              n_places: int64
              n_times: int64
              number_of_pages_median: double
              edition_count: int64
              ratings_average: double
              ratings_count: int64
              readinglog_count: int64
              want_to_read_count: double
              currently_reading_count: double
              already_read_count: int64
              completion_rate: double
              ebook_access: string
              has_fulltext: bool
              public_scan: bool
              n_ia_scans: int64
              n_isbn: int64
              n_publishers: int64
              publisher: string
              publish_place: string
              title_length: int64
              title_word_count: int64
              source_subject: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 4707
              to
              {'column': Value('string'), 'data_type': Value('string'), 'description': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 36 new columns ({'n_places', 'work_key', 'languages', 'publish_place', 'subtitle', 'authors', 'n_isbn', 'publication_decade', 'number_of_pages_median', 'already_read_count', 'subjects', 'source_subject', 'title', 'ratings_count', 'title_word_count', 'n_authors', 'primary_author', 'title_length', 'n_languages', 'n_ia_scans', 'n_subjects', 'completion_rate', 'has_fulltext', 'readinglog_count', 'ebook_access', 'currently_reading_count', 'ratings_average', 'n_people', 'edition_count', 'want_to_read_count', 'publisher', 'n_times', 'age_years', 'public_scan', 'n_publishers', 'first_publish_year'}) and 3 missing columns ({'data_type', 'column', 'description'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/EduDevCommons/open-library-book-catalogue/open_library_books.csv (at revision 4c7b176dec42755b29e69c368466a8729675d15d), ['hf://datasets/EduDevCommons/open-library-book-catalogue@4c7b176dec42755b29e69c368466a8729675d15d/data_dictionary.csv', 'hf://datasets/EduDevCommons/open-library-book-catalogue@4c7b176dec42755b29e69c368466a8729675d15d/open_library_books.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

column
string
data_type
string
description
string
work_key
string
Open Library work identifier (e.g. /works/OL27448W).
title
string
Book title.
subtitle
string
Subtitle, when recorded.
primary_author
string
First listed author name.
n_authors
integer
Number of listed authors.
authors
string list
Semicolon-separated author names.
first_publish_year
integer
Earliest known publication year.
publication_decade
category
Decade of first publication (e.g. 1980s).
age_years
integer
Years since first publication (relative to 2026).
n_languages
integer
Number of languages the work has been published in.
languages
string list
Semicolon-separated language codes (eng, fre, ger, ...).
n_subjects
integer
Number of subject tags on the work.
subjects
string list
Up to 12 subject tags.
n_people
integer
Number of associated people tags.
n_places
integer
Number of associated place tags.
n_times
integer
Number of associated time-period tags.
number_of_pages_median
integer
Median page count across editions.
edition_count
integer
Number of editions recorded.
ratings_average
float
Average user rating, 1-5.
ratings_count
integer
Number of ratings.
readinglog_count
integer
Number of readers who logged the book.
want_to_read_count
integer
Users who marked it want-to-read.
currently_reading_count
integer
Users currently reading it.
already_read_count
integer
Users who marked it as read.
completion_rate
float
already_read_count / ratings_count.
ebook_access
category
borrowable, printdisabled, public or no_ebook.
has_fulltext
boolean
True if a full-text scan exists.
public_scan
boolean
True if a public-domain scan is available.
n_ia_scans
integer
Number of Internet Archive scan identifiers.
n_isbn
integer
Number of ISBNs recorded.
n_publishers
integer
Number of publishers recorded.
publisher
string
First listed publisher.
publish_place
string
First listed place of publication.
title_length
integer
Character length of the title.
title_word_count
integer
Word count of the title.
source_subject
category
Subject query that surfaced the work.
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
End of preview.

Open Library Book Catalogue β€” 13,088 Works Across 20 Subjects

Subtitle: A subject-sampled slice of Open Library with authors, publication decades, page counts, ratings, reading activity and ebook availability.


πŸ“– Description

Open Library holds tens of millions of bibliographic records, which makes it wonderful for research and painful to work with. This dataset is a ready-to-analyse sample of 13,088 works drawn evenly from 20 popular subjects, giving you a balanced corpus for text, recommendation and publishing-market analysis.

Subjects included: fantasy, science fiction, mystery, romance, history, biography, philosophy, poetry, psychology, business, mathematics, physics, cooking, travel, art, computer programming, medicine, politics, religion, education β€” roughly 600–700 unique works each, with source_subject recording where each row came from.

What each record contains:

  • Bibliographic β€” work key, title, subtitle, primary author, full author list, author count, first publish year, derived decade and age_years (relative to 2026), language list and count.
  • Descriptive metadata β€” up to 12 subject tags, subject count, plus counts of associated people, places and time periods.
  • Physical β€” median page count across editions, edition count, ISBN count, publisher count, first publisher and place of publication.
  • Engagement β€” average rating, rating count, reading-log count, want-to-read, currently-reading and already-read counts, and a derived completion_rate.
  • Access β€” ebook access category (borrowable / printdisabled / public / no_ebook), full-text availability, public-scan flag and number of Internet Archive scans.
  • Text features β€” title length and word count, useful as cheap baselines before embeddings.

🧾 Columns (36)

work_key, title, subtitle, primary_author, n_authors, authors, first_publish_year, publication_decade, age_years, n_languages, languages, n_subjects, subjects, n_people, n_places, n_times, number_of_pages_median, edition_count, ratings_average, ratings_count, readinglog_count, want_to_read_count, currently_reading_count, already_read_count, completion_rate, ebook_access, has_fulltext, public_scan, n_ia_scans, n_isbn, n_publishers, publisher, publish_place, title_length, title_word_count, source_subject

πŸ’‘ Ideas for using this data

  1. What makes a book popular? Model ratings_count / want_to_read_count from page count, decade, subject and author count.
  2. Genre length profiles β€” page-count distributions by subject (poetry vs fantasy vs medicine).
  3. Recommender β€” item-item similarity using subject overlap plus title tokens.
  4. Publishing trends β€” works per decade by subject; spot the post-2000 explosion in fantasy and programming titles.
  5. Ebook access and age β€” how strongly does publication year predict public-domain scan availability?
  6. Author productivity β€” authors appearing across multiple subjects (only within this sample).
  7. NLP β€” train a subject classifier on titles, then inspect which words are most predictive.

⚠️ Caveats

  • This is a subject-filtered sample, not the whole catalogue; it is not representative of all published books.
  • Subject tagging on Open Library is community-contributed and inconsistent; the same book can carry dozens of overlapping tags.
  • Ratings and reading-log counts are sparse β€” many rows are legitimately blank, and popular bestsellers dominate the non-null values.
  • Only 12 subject tags per work are kept (out of a potentially much longer list).
  • Deduplication used the work key; different editions of the same work share one row.

πŸ”— Provenance & licence

  • Source: Open Library Search API (openlibrary.org/search.json), an Internet Archive project. Bibliographic metadata is openly available; cover images and full texts carry their own licences.
  • Snapshot: November 2026. 13,088 rows Γ— 36 columns.
Downloads last month
44