Skip to main content

A PySpark utility package for sales data analysis and visualization

Project description

GeekSales

A powerful PySpark utility package for sales data analysis and visualization.

Features

  • Create and configure Spark sessions with optimized settings
  • Calculate sales metrics and aggregations
  • Generate comprehensive sales dashboards
  • Create various sales visualizations:
    • Sales by region
    • Customer order distribution
    • Sales trends over time
    • Top products by sales

Installation

pip install geeksales

Usage

from geeksales import spark_utils

# Create a Spark session
spark = spark_utils.create_spark_session("Sales Analysis")

# Load your sales data
df = spark.read.csv("sales_data.csv", header=True, inferSchema=True)

# Add sales metrics
df_with_metrics = spark_utils.add_sales_metrics(df)

# Generate sales summary
summary = spark_utils.get_sales_summary(df_with_metrics)

# Create visualizations
spark_utils.plot_sales_by_region(df_with_metrics)
spark_utils.plot_customer_order_distribution(df_with_metrics)
spark_utils.plot_sales_trend(df_with_metrics)
spark_utils.plot_product_sales(df_with_metrics)

# Create a complete dashboard
dashboard = spark_utils.create_sales_dashboard(df_with_metrics)

Requirements

  • Python 3.7 or higher
  • PySpark 3.0 or higher
  • Matplotlib 3.0 or higher
  • Seaborn 0.11 or higher
  • Pandas 1.0 or higher

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

geeksales-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geeksales-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file geeksales-0.1.1.tar.gz.

File metadata

  • Download URL: geeksales-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for geeksales-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f2870ee25db20eeefbc683078e208f0bd179c02aeb8021199b246efc553a6b6
MD5 57b50b9ac055646ab24b5fbdd51c1cb9
BLAKE2b-256 2ccb5921f87474385b9dda567ce602c4304232a7325e8647e02c681db9ca5c7a

See more details on using hashes here.

File details

Details for the file geeksales-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: geeksales-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for geeksales-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c4fc49d78cd256af51415e9c229d54b6f28ef9d7e756dbb65134e6a1d2ad9c
MD5 d6a5c78c4534596aa56c20351099732d
BLAKE2b-256 03272504aff6eb328a1834949ac4df1145ae1e428889b0803c47462532659ca9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page