Helpful utilities for data science workflows.
Project description
dashcamcsv
A simple Python package with helpful utilities for data science workflows.
Features
load_and_describe(url: str): Load a CSV from a URL and print basic statistics.missing_report(df): Show missing value counts and percentages.info_summary(df): Print DataFrame shape, types, and memory usage.clean_data(df, strategies=None): Perform basic data cleaning with customizable strategies.quick_plot(df, column, figsize=(10, 6)): Plot a histogram or bar plot for a column with custom figure size.plot_advanced(df, x, y=None, kind='pairplot', figsize=(10, 8)): Create advanced visualizations using seaborn with custom figure size.
Installation
pip install dashcamcsv
Usage
from dashcamcsv import load_and_describe, missing_report, info_summary, clean_data, quick_plot, plot_advanced
# Basic example
df = load_and_describe("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv")
missing_report(df)
info_summary(df)
# Data cleaning
# Apply different cleaning strategies for different columns
clean_df = clean_data(df, strategies={
'sepal_length': 'median', # Fill missing values with median
'species': 'mode', # Fill missing values with most common value
'petal_width': 'drop', # Drop rows where this column has missing values
'sepal_width': 'value:5.0' # Fill missing values with a specific value
})
# Visualization
quick_plot(df, "sepal_length", figsize=(12, 6)) # Customize figure size
# Advanced visualizations with seaborn
plot_advanced(df, 'sepal_length', 'sepal_width', kind='scatter', figsize=(10, 8)) # Scatter plot with regression line
plot_advanced(df, 'species', 'sepal_length', kind='box', figsize=(8, 6)) # Box plot
plot_advanced(df, kind='heatmap', figsize=(12, 10)) # Correlation heatmap
Changelog
- v0.2.5: Added clean_data function for flexible data cleaning
- v0.2.4: Fixed plotting bugs and improved error handling
- v0.2.3: Updated documentation and examples
- v0.2.2: Fixed plotting functions to handle categorical data better
- v0.2.1: Added compatibility with Python 3.8+
- v0.2.0: Added figsize parameter to plotting functions
- v0.1.0: Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dashcamcsv-0.2.5.tar.gz
(27.3 kB
view details)
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 dashcamcsv-0.2.5.tar.gz.
File metadata
- Download URL: dashcamcsv-0.2.5.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ca61a75b1938439486a6a02e411d12ed991aaa39dc2c7f33b7d32e6678da2cd
|
|
| MD5 |
2341dab14276952c9873496b23e68526
|
|
| BLAKE2b-256 |
869df8ca743613d9a2a0b859ae154e70324a902b7a4fa248c386f4c0c6c7b806
|
File details
Details for the file dashcamcsv-0.2.5-py3-none-any.whl.
File metadata
- Download URL: dashcamcsv-0.2.5-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab2e871305439f1e976281a25b138acae1789831bd0ae99b7ca7ddb9be66785
|
|
| MD5 |
159e0ac80aa058db5c611972a84bba17
|
|
| BLAKE2b-256 |
88d37f36d6a7946dc982e0f1e6b6d759d1ce792b1d4cde7ff34f01fd0d741663
|