The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
id: string
title: string
code_file: string
language: string
kernel_type: string
is_private: bool
enable_gpu: bool
enable_tpu: bool
enable_internet: bool
dataset_sources: list<item: string>
child 0, item: string
isPrivate: bool
licenses: list<item: struct<name: string>>
child 0, item: struct<name: string>
child 0, name: string
resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: (... 46 chars omitted)
child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
child 0, path: string
child 1, description: string
child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
child 0, fields: list<item: struct<name: string, type: string, description: string>>
child 0, item: struct<name: string, type: string, description: string>
child 0, name: string
child 1, type: string
child 2, description: string
subtitle: string
description: string
keywords: list<item: string>
child 0, item: string
to
{'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_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
id: string
title: string
code_file: string
language: string
kernel_type: string
is_private: bool
enable_gpu: bool
enable_tpu: bool
enable_internet: bool
dataset_sources: list<item: string>
child 0, item: string
isPrivate: bool
licenses: list<item: struct<name: string>>
child 0, item: struct<name: string>
child 0, name: string
resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: (... 46 chars omitted)
child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
child 0, path: string
child 1, description: string
child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
child 0, fields: list<item: struct<name: string, type: string, description: string>>
child 0, item: struct<name: string, type: string, description: string>
child 0, name: string
child 1, type: string
child 2, description: string
subtitle: string
description: string
keywords: list<item: string>
child 0, item: string
to
{'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
YAML Metadata Warning:The task_categories "tabular" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
Drug-Like Molecules - ChEMBL Physicochemistry
Subtitle: 40,000 bioactive molecules with clinical phase, SMILES & drug properties
Tags: tabular, chemistry, biology
Dataset File: chembl_molecules.csv (40,000 rows, 53 columns, 18.7 MB)
Provenance & Source: ChEMBL Database API (ebi.ac.uk/chembl)
Expected Update Frequency: annually
π Description
40,000 molecules from the ChEMBL drug-discovery database
ChEMBL is the European Bioinformatics Institute's manually curated database of bioactive molecules with drug-like properties. This extract contains 40,000 molecules with 53 parameters, combining ChEMBL's curation with computed physicochemical properties.
- Identity and modality β ChEMBL ID, preferred name, molecule type, structure type, ATC codes.
- Clinical status β maximum phase, first approval year, indication class, black-box warning, first-in-class, prodrug, natural-product and availability flags.
- Administration β oral, parenteral and topical flags.
- Structure β canonical SMILES, standard InChI and InChIKey.
- Physicochemistry β molecular weight (free base and full), ALogP, H-bond donors/acceptors, polar surface area, rotatable bonds, aromatic rings, heavy atoms, QED, natural-product likeness and the Lipinski rule-of-five violation count.
- Derived β approved/clinical/small-molecule/biologic flags, Ro5 pass, MW/logP/QED bands, property completeness and SMILES length.
471 molecules are approved drugs (phase 4) and 39,289 are small molecules, so the file spans everything from preclinical tool compounds to marketed medicines.
π§Ύ Columns (53)
chembl_id, pref_name, molecule_type, max_phase, first_approval, indication_class, oral, parenteral, topical, black_box_warning, natural_product, first_in_class, chirality, prodrug, inorganic_flag, polymer_flag, availability_type, atc_classifications, canonical_smiles, standard_inchi, standard_inchi_key, mw_freebase, full_mwt, alogp, hba, hbd, psa, rtb, ro3_pass, num_ro5_violations, qed_weighted, aromatic_rings, heavy_atoms, np_likeness_score, full_molformula, atc_count, property_count, property_completeness_pct, is_approved, is_clinical, is_preclinical, is_small_molecule, is_biologic, has_black_box_warning, is_withdrawn, is_oral, passes_ro5, mw_band, logp_band, qed_band, smiles_length, heavy_atom_fraction_of_mw, has_structure
π‘ Ideas for using this data
- Drug-likeness β QED and Ro5 violations for approved vs preclinical compounds.
- Property cliffs β molecular weight vs ALogP, coloured by approval status.
- Modality shift β small molecules vs biologics over approval year.
- Black-box warnings β which indication classes carry the most warnings?
- Oral druggability β oral vs parenteral compounds across property space.
- Natural products β do natural-product-like molecules have different property profiles?
- Chemical similarity β cluster by InChIKey/Murcko scaffold (external toolkit) or SMILES length.
- ATC taxonomy β map molecules to therapeutic areas and compare size and phase.
- Predicting approval β train a classifier on computed properties (beware selection bias).
π Files
| File | What it is |
|---|---|
chembl_molecules.csv |
40,000 molecules x 53 parameters. |
data_dictionary.csv |
Column / type / description for every field. |
notebook.ipynb |
Starter notebook that loads the CSV and analyses it. |
dataset-metadata.json |
Kaggle API metadata. |
about.md |
Plain-text About block. |
π·οΈ Tags
chemistry, drug-discovery, chembl, molecules, pharmacology, bioinformatics, smiles
π Provenance
- Source: ChEMBL API,
https://www.ebi.ac.uk/chembl/api/data/molecule.json, paginated 1,000 records at a time. - Scope: the first 40,000 molecule records in ChEMBL's default ordering, not a random or approved-only sample.
- Processing: nested
molecule_properties,molecule_structuresandatc_classificationsflattened; derived bands, flags and completeness measures added. - Snapshot date: 22 November 2026 (ChEMBL release current at that date).
π Update frequency
Several times a year. ChEMBL publishes roughly quarterly releases.
β οΈ Caveats
- This is the first 40,000 records by ChEMBL ID, not a representative sample of the database.
- Computed properties are absent for many biologics and older records; blanks are not zero.
max_phasereflects the highest phase recorded, which may be stale for discontinued drugs.- SMILES/InChI strings are large and can make the CSV heavy to load unfiltered.
- ChEMBL includes compounds that never became drugs; 'approved' is a minority class.
- Property values are calculated (ALogP, QED), not measured.
- Some molecules are salts or mixtures, so
full_mwtdiffers frommw_freebase.
π Licence
ChEMBL data is licensed CC BY-SA 4.0 β attribution and share-alike apply.
π Column Definitions & File Header
| # | Column Name | Data Type | Description |
|---|---|---|---|
| 1 | chembl_id |
string |
ChEMBL molecule identifier. |
| 2 | pref_name |
string |
Preferred compound name. |
| 3 | molecule_type |
string |
Small molecule, protein, antibody, oligosaccharide, ... |
| 4 | max_phase |
number |
Highest clinical phase reached (4 = approved). |
| 5 | first_approval |
number |
Year of first approval, where approved. |
| 6 | indication_class |
number |
Therapeutic indication class. |
| 7 | oral |
boolean |
true when the molecule is orally administered. |
| 8 | parenteral |
boolean |
true when parenterally administered. |
| 9 | topical |
boolean |
true when topically administered. |
| 10 | black_box_warning |
number |
1 when a black-box warning applies. |
| 11 | natural_product |
number |
1 when the compound is a natural product. |
| 12 | first_in_class |
number |
1 when flagged as first in class. |
| 13 | chirality |
number |
Chirality flag (-1 unknown, 0 achiral, 1 chiral, 2 racemic). |
| 14 | prodrug |
number |
1 when the compound is a prodrug. |
| 15 | inorganic_flag |
number |
1 when inorganic. |
| 16 | polymer_flag |
number |
1 when a polymer. |
| 17 | availability_type |
number |
Prescription / over-the-counter availability code. |
| 18 | atc_classifications |
string |
ATC codes assigned to the molecule. |
| 19 | canonical_smiles |
string |
Canonical SMILES structure string. |
| 20 | standard_inchi |
string |
Standard InChI identifier. |
| 21 | standard_inchi_key |
string |
Standard InChIKey (27 characters). |
| 22 | mw_freebase |
number |
Molecular weight of the free base (Da). |
| 23 | full_mwt |
number |
Molecular weight including salts (Da). |
| 24 | alogp |
number |
Calculated ALogP lipophilicity. |
| 25 | hba |
number |
Hydrogen-bond acceptors. |
| 26 | hbd |
number |
Hydrogen-bond donors. |
| 27 | psa |
number |
Polar surface area (A^2). |
| 28 | rtb |
number |
Rotatable bonds. |
| 29 | ro3_pass |
string |
Lipinski rule-of-three pass flag (Y/N). |
| 30 | num_ro5_violations |
number |
Number of Lipinski rule-of-five violations. |
| 31 | qed_weighted |
number |
QED drug-likeness score (0-1). |
| 32 | aromatic_rings |
number |
Number of aromatic rings. |
| 33 | heavy_atoms |
number |
Number of heavy (non-hydrogen) atoms. |
| 34 | np_likeness_score |
number |
Natural-product likeness score. |
| 35 | full_molformula |
string |
Molecular formula including salts. |
| 36 | atc_count |
number |
Number of ATC codes. |
| 37 | property_count |
number |
How many of the 12 core computed properties are present. |
| 38 | property_completeness_pct |
number |
property_count as a percentage of 12. |
| 39 | is_approved |
boolean |
true when max_phase is 4. |
| 40 | is_clinical |
boolean |
true when the molecule reached phase 1 or later. |
| 41 | is_preclinical |
boolean |
true when max_phase is below 1 or unknown. |
| 42 | is_small_molecule |
boolean |
true when molecule_type is Small molecule. |
| 43 | is_biologic |
boolean |
true for protein/antibody/oligonucleotide modalities. |
| 44 | has_black_box_warning |
boolean |
true when black_box_warning is 1. |
| 45 | is_withdrawn |
boolean |
true when the withdrawn flag is set. |
| 46 | is_oral |
boolean |
true when oral administration is flagged. |
| 47 | passes_ro5 |
boolean |
true when num_ro5_violations is 0. |
| 48 | mw_band |
string |
Molecular-weight band (Da). |
| 49 | logp_band |
string |
ALogP band. |
| 50 | qed_band |
string |
QED drug-likeness band. |
| 51 | smiles_length |
number |
Characters in the SMILES string. |
| 52 | heavy_atom_fraction_of_mw |
number |
Heavy atoms divided by molecular weight. |
| 53 | has_structure |
boolean |
true when a SMILES string exists. |
π Support & Community
If you find this dataset valuable for your research, machine learning projects, or data explorations, please give it an upvote (π) on Kaggle! Feedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.
- Downloads last month
- 31