Dataset Preview
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 7 new columns ({'explanation', 'language', 'category', 'code', 'difficulty', 'id', 'tags'}) and 5 missing columns ({'Language', 'Description', 'ID', 'Code Snippet', 'Complexity'}).
This happened while the csv dataset builder was generating data using
hf://datasets/nova-ai-labs/n-ensemble/coding_dataset.csv (at revision ea204f500d7a7ef76c7815984251faf86b26fae7)
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 "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
id: int64
language: string
category: string
difficulty: string
code: string
explanation: string
tags: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1053
to
{'ID': Value(dtype='int64', id=None), 'Language': Value(dtype='string', id=None), 'Code Snippet': Value(dtype='string', id=None), 'Description': Value(dtype='string', id=None), 'Complexity': Value(dtype='string', id=None)}
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 1433, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1050, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
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 7 new columns ({'explanation', 'language', 'category', 'code', 'difficulty', 'id', 'tags'}) and 5 missing columns ({'Language', 'Description', 'ID', 'Code Snippet', 'Complexity'}).
This happened while the csv dataset builder was generating data using
hf://datasets/nova-ai-labs/n-ensemble/coding_dataset.csv (at revision ea204f500d7a7ef76c7815984251faf86b26fae7)
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.
ID int64 | Language string | Code Snippet string | Description string | Complexity string |
|---|---|---|---|---|
1 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Medium |
2 | JavaScript | function add(a, b) { return a + b; } | Defines a function that adds two numbers. | Hard |
3 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Medium |
4 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Hard |
5 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Hard |
6 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Hard |
7 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Hard |
8 | Ruby | def add(a, b); a + b; end | Defines a method that adds two numbers. | Hard |
9 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Easy |
10 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Easy |
11 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Easy |
12 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Hard |
13 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Medium |
14 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Hard |
15 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
16 | Python | print('Hello, World!') | Prints 'Hello, World!' to the console. | Hard |
17 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Medium |
18 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Hard |
19 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Hard |
20 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Medium |
21 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Hard |
22 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Easy |
23 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
24 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Medium |
25 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Hard |
26 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Hard |
27 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
28 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Hard |
29 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Easy |
30 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Easy |
31 | Ruby | def add(a, b); a + b; end | Defines a method that adds two numbers. | Hard |
32 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Easy |
33 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Hard |
34 | C++ | std::cout << 'Hello, World!'; | Prints 'Hello, World!' to the console. | Medium |
35 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Easy |
36 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
37 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Easy |
38 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Easy |
39 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Hard |
40 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Hard |
41 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Hard |
42 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Easy |
43 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Easy |
44 | Python | print('Hello, World!') | Prints 'Hello, World!' to the console. | Easy |
45 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Easy |
46 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Easy |
47 | Ruby | def add(a, b); a + b; end | Defines a method that adds two numbers. | Hard |
48 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Medium |
49 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Hard |
50 | C++ | std::cout << 'Hello, World!'; | Prints 'Hello, World!' to the console. | Medium |
51 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Hard |
52 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
53 | C++ | std::cout << 'Hello, World!'; | Prints 'Hello, World!' to the console. | Medium |
54 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Easy |
55 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Medium |
56 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Hard |
57 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Hard |
58 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Medium |
59 | Python | print('Hello, World!') | Prints 'Hello, World!' to the console. | Easy |
60 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Easy |
61 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Hard |
62 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Easy |
63 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
64 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Hard |
65 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Hard |
66 | C++ | std::cout << 'Hello, World!'; | Prints 'Hello, World!' to the console. | Easy |
67 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Hard |
68 | Ruby | def add(a, b); a + b; end | Defines a method that adds two numbers. | Medium |
69 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Medium |
70 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Medium |
71 | JavaScript | function add(a, b) { return a + b; } | Defines a function that adds two numbers. | Medium |
72 | C++ | std::cout << 'Hello, World!'; | Prints 'Hello, World!' to the console. | Hard |
73 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Easy |
74 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Hard |
75 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Medium |
76 | JavaScript | function add(a, b) { return a + b; } | Defines a function that adds two numbers. | Medium |
77 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Medium |
78 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Easy |
79 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
80 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Easy |
81 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Medium |
82 | JavaScript | console.log('Hello, World!'); | Prints 'Hello, World!' to the console. | Medium |
83 | Python | for i in range(5): print(i) | Prints numbers from 0 to 4. | Medium |
84 | Java | System.out.println('Hello, World!'); | Prints 'Hello, World!' to the console. | Easy |
85 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Medium |
86 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Hard |
87 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Hard |
88 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Medium |
89 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Hard |
90 | Python | def add(a, b): return a + b | Defines a function that adds two numbers. | Medium |
91 | Ruby | puts 'Hello, World!' | Prints 'Hello, World!' to the console. | Easy |
92 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Medium |
93 | Java | public int add(int a, int b) { return a + b; } | Defines a method that adds two numbers. | Hard |
94 | JavaScript | for (let i = 0; i < 5; i++) { console.log(i); } | Prints numbers from 0 to 4. | Hard |
95 | Python | print('Hello, World!') | Prints 'Hello, World!' to the console. | Hard |
96 | C++ | int add(int a, int b) { return a + b; } | Defines a function that adds two numbers. | Medium |
97 | Ruby | def add(a, b); a + b; end | Defines a method that adds two numbers. | Medium |
98 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Medium |
99 | Ruby | 5.times { |i| puts i } | Prints numbers from 0 to 4. | Medium |
100 | Java | for (int i = 0; i < 5; i++) { System.out.println(i); } | Prints numbers from 0 to 4. | Medium |
End of preview.
YAML Metadata Warning: empty or missing yaml metadata in repo card
Check out the documentation for more information.
Nessembele
A small coding dataset for practice and learning.
Quick Start
from datasets import load_dataset
dataset = load_dataset("novastudio/nessembele")
df = dataset["train"].to_pandas()
print(df.head())
What's Inside
- File:
coding_dataset.csv - Format: CSV with headers
- Size: Small and beginner-friendly
- Purpose: Coding practice and data analysis
Usage
Load with Pandas
import pandas as pd
df = pd.read_csv("hf://datasets/novastudio/nessembele/coding_dataset.csv")
GPU Acceleration (Optional)
import cudf # NVIDIA RAPIDS
df = cudf.read_csv("hf://datasets/novastudio/nessembele/coding_dataset.csv")
Practice Ideas
- Data exploration and cleaning
- Basic statistics and visualization
- Simple machine learning models
- Algorithm testing
License
MIT - Free to use for any purpose.
Made by NovaStudio
- Downloads last month
- 5