Skip to main content

A Statistical Support package

Project description

GusPI

A package to include statistical supports.

Quick start

$ python3 -m pip install -U plotly

$ python3 -m pip install -U GusPI

Demo notebook

demo

GusPI.scraper

The scrape package provides an easy way to scrape Yelp business info and Yelp reviews for specific business.

from GusPI import scraper

YelpBizInfo The function collects business info and save it into a csv file.

#Example

#declare a list: https://www.yelp.com/biz/`artisan-ramen-milwaukee`
CUISINES = ['artisan-ramen-milwaukee','red-light-ramen-milwaukee-5']

#scrape the business info
scraper.YelpBizInfo(CUISINES)

YelpReview The function collects reviews for respective business and save them into separate files by business names.

#Example

#declare a list: https://www.yelp.com/biz/`artisan-ramen-milwaukee`
CUISINES = ['artisan-ramen-milwaukee','red-light-ramen-milwaukee-5']

#scrape the business info
scraper.YelpReview(CUISINES)

GusPI.suPY

from GusPI import suPY

metrics

This package provides several analytical formulas to support supply chain analytics.

Economic order quantity EOQ(demand, mean, STD, C, Ce, Cs, Ct)

Perfect Order Measurement POM(TotalOrders, ErrorOrders)

Fill Rate FR(TotalItems, ShippedItems)

Inventory Days of Supply IDS(InventoryOnHand,AvgDailyUsage)

Freight cost per unit FCU(TotalFreightCost,NumberOfItems)

Inventory Turnover IT(COGS,AvgInventory)

Days of Supply (DOS) DOS(AvgInventory,MonthlyDemand)

Gross Margin Return on Investment (GMROI) GMROI(GrossProfit, OpeningStock, ClosingStock)

Inventory Accuracy IA(ItemCounts, TotalItemCounts)

Storage Utilization Rate SUR(InventoryCube, TotalWarehouseCube)

Total Order Cycle Time TOCT(TimeOrderReceivedbyCustomer, TimeOrderPlaced,TotalNumberofOrdersShipped)

Internal Order Cycle Time IOCT(TimeOrderShipped, TimeOrderReceived, NumberofOrdersShipped)

Read sales data from csv file and calculate basic safty sock and reporder point.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 12LS
#safety days: 5
#leadtime in days: 7

#print the lineplot
suPy.basicSafetyStock('SalesData.csv','12LS',5,7)

Read sales data from csv file and calculate basic safty sock and reporder point for all products.

#Example

#sales data from a csv file: salesData.csv
#safety days: 5
#leadtime in days: 7

#print the lineplot
suPy.basicSafetyStockList('SalesData.csv',5,7)

Read sales data from csv file and calculate safty sock and reporder point.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 12LS
#service rate: 5
#leadtime in days: 7

#print the lineplot
suPy.safetyStockwtServiceRate('SalesData.csv','12LS',0.95,7)

Read sales data from csv file and calculate basic safty sock and reporder point for all products.

#Example

#sales data from a csv file: salesData.csv
#safety days: 5
#leadtime in days: 7

#print the lineplot
suPy.safetyStockwtServiceRateList('SalesData.csv',5,7)

graphs

Read sales data from csv file and print out a lineplot of a product quantity sold.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 22LS

#print the lineplot
suPy.lineplotQtyByMonth('salesData.csv','22LS')

Read sales data from csv file and print out a lineplot of a product's total cost sold.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 22LS

#print the lineplot
suPy.lineplotTotalCostByMonth('salesData.csv','22LS')

Read sales data from csv file and print out a lineplot of a product's total sales.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 22LS

#print the lineplot
suPy.lineplotTotalSalesByMonth('salesData.csv','22LS')

Read sales data from csv file and print out a lineplot of a product's average cost.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 22LS

#print the lineplot
suPy.lineplotAverageCostByMonth('salesData.csv','22LS')

Read sales data from csv file and print out a lineplot of a product's average sales.

#Example

#sales data from a csv file: salesData.csv
#product number to perform analysis on: 22LS

#print the lineplot
suPy.lineplotAverageSalesPriceByMonth('salesData.csv','22LS')

GusPI.finPy

from GusPI import finPy

Read financial statements from csv file and print them out as a dataframe.

#Example

#balancesheet from a csv file: balance_sheet_yr.csv

#print the statement in a dataframe
finPy.printStatement('balance_sheet_yr.csv')

Read financial statements from csv files and provide a single line chart for analysis.

#Example

#income statement from a csv file: income_statement_m.csv

#print a single line chart
finPy.lineplot('income_statement_m.csv','total_revenue')

Read financial statements from csv files and provide multiple line charts for analysis.

#Example

#balancesheet from a csv file: balance_sheet_yr.csv

#print multiple lineplots
finPy.multilineplots('balance_sheet_yr.csv', '3 year BalanceSheet Graph')

Read financial statements from csv files and provide a bullet chart for analysis.

#Example

#balancesheet from a csv file: balance_sheet_yr.csv

#print financial metrics
finPy.bulletChart('balance_sheet_yr.csv','inventory')

Read financial statements from csv files and provide financial metrics for analysis.

#Example

#balancesheet from a csv file: balance_sheet_yr.csv
#incomeStatement from a csv file: income_statement_3yr.csv

#print financial metrics
finPy.calculateMetrics('balance_sheet_yr.csv','income_statement_12m.csv')

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

GusPI-0.0.25.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

GusPI-0.0.25-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file GusPI-0.0.25.tar.gz.

File metadata

  • Download URL: GusPI-0.0.25.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

File hashes

Hashes for GusPI-0.0.25.tar.gz
Algorithm Hash digest
SHA256 ee676de78b60914ae9666dbd4d95d0f795ff2462f4b4be784dea3ec7ddb12dee
MD5 a2460311ea05864cf2a029abfda28a0b
BLAKE2b-256 b00b2566a79d32f99247abc7cc8c022e88da988404a96f643b71b167570f8ddf

See more details on using hashes here.

File details

Details for the file GusPI-0.0.25-py3-none-any.whl.

File metadata

  • Download URL: GusPI-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3

File hashes

Hashes for GusPI-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 2eabeba1d9de639f192769ccb74b51506139867bec4ddf864bc2895c9cdc94b1
MD5 4b0e3d9ce1c432a84fdfc918a5d03374
BLAKE2b-256 b4041765709c761ac50d27f3cc5c0a41d0b70ba784d546275e95afd360b15783

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