Retrieve DS practical assignment codes and problem statements by number (10 assignments)
Project description
ds-practicals
A zero-dependency Python package to retrieve Data Science practical assignment codes, titles, and problem statements by number (10 assignments).
Installation
pip install ds-practicals-pvg
Usage
You can use either the Class API or the Module API.
1. Class API (Recommended)
The DSPracticals class wraps all functions and adds the ability to export complete .ipynb files.
from ds_practicals import DSPracticals
ds = DSPracticals()
# List all 10 assignments
for n, title in ds.list_assignments():
print(n, title)
# Get the full problem statement for assignment 3
print(ds.get_statement(3))
# Get code for assignment 2
print(ds.get_code(2))
# Export an assignment as a standalone Jupyter Notebook file
ds.export_to_notebook(1)
# → creates 'practical_1.ipynb' in your current directory
2. Module API
from ds_practicals import get_code, get_title, get_statement, get_assignment, list_assignments
# Get title for assignment 1
print(get_title(1))
# → "Data Wrangling I"
# Get title, statement, and code as a dict
a = get_assignment(1)
print(a["title"])
Assignments
| # | Title |
|---|---|
| 1 | Data Wrangling I |
| 2 | Data Wrangling II |
| 3 | Descriptive Statistics - Measures of Central Tendency and Variability |
| 4 | Data Analytics I - Linear Regression |
| 5 | Data Analytics II - Logistic Regression |
| 6 | Data Analytics III - Naive Bayes |
| 7 | Text Analytics |
| 8 | Data Visualization I |
| 9 | Data Visualization II |
| 10 | Data Visualization III |
API Reference
| Function | Returns | Description |
|---|---|---|
list_assignments() |
list[tuple[int, str]] |
All (number, title) pairs |
get_title(n) |
str |
Title of practical n |
get_statement(n) |
str |
Full problem statement for practical n |
get_code(n) |
str |
All code cells from practical n concatenated |
get_assignment(n) |
dict |
{"title", "statement", "code"} for practical n |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ds_practicals_pvg-1.0.1.tar.gz.
File metadata
- Download URL: ds_practicals_pvg-1.0.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16178f0c5a83f59f0c3e6bc7cac2c4119837e9dcc4159e6b83791a15a0634e7f
|
|
| MD5 |
6b225b232c904ef2db58ef31e3754a01
|
|
| BLAKE2b-256 |
a570b51c624cf1f204472f752473ceebe924c87da99e125dc7686b78e4f2d753
|
File details
Details for the file ds_practicals_pvg-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ds_practicals_pvg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5067535a3c9a95c39e45684b52c4a140bbcf032757c25b8230cff23639961cea
|
|
| MD5 |
1e462d7173ab11385f47fe6247fbd4fa
|
|
| BLAKE2b-256 |
17c6efdbe0917ba6846e799084e064307e8da199fd0199074087fe4f34981853
|