Skip to main content

Python package to do analysis on Occasion

Project description

Installation:

pip install occasion-analysis-package

Get started:

Description: Python package to do analysis on Occasion.

Long Description: This package consist of 3 functions: export sql data to csv(export_data_to_csv), create word cloud(create_word_cloud), create emoji chart(create_emoji_chart).

  1. export_data_to_csv(export_file_path): The function will export data based on SQL query into csv file. You can connect to Database either via credentials.env file or through environment variables. Either use VPN or make sure your IP is whitelisted. For data loading via credentails file create a file named: "credentials.env" which has database credential details in following format:

DATABASE = 'database_name'

USER = 'user_name'

PASSWORD = 'password'

HOST = 'host'

PORT = 'port_number'

This function will ask for Database connection input: 1. Credentials 2. Environmental.

This function will ask for Occasion Input. Like Mother's Day, Father's Day, Christmas.

Parameters:

export_file_path (string): File Path to export the data with file name.

  1. create_word_cloud(import_file_path): The function will create Word Cloud using Document Term Matrix. Later you will be asked to enter stop word list.

Parameters:

import_file_path (string): File Path to export the data. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.

  1. create_emoji_chart(import_file_path): The function will create Emoji Frequency Chart.

Parameters:

import_file_path (string): File Path to export the data. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.

Example: from occasion_analysis_package import export_data_to_csv, create_word_cloud, create_emoji_chart

export_data_to_csv("D:\\Analysis\\Occasion Analysis\\test\\occasion.csv")

create_word_cloud("D:\\Analysis\\Occasion Analysis\\test\\occasion.csv")

create_emoji_chart("D:\\Analysis\\Occasion Analysis\\test\\occasion.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

occasion_analysis_package-2.9.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

occasion_analysis_package-2.9-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file occasion_analysis_package-2.9.tar.gz.

File metadata

  • Download URL: occasion_analysis_package-2.9.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.2

File hashes

Hashes for occasion_analysis_package-2.9.tar.gz
Algorithm Hash digest
SHA256 60e63f446de63fb2fdd116e7c7bf322a3c0ad6a55ef3d0ddb382d0c9f56b34eb
MD5 a084fef1b9001283255aa52b1fd84eab
BLAKE2b-256 8371e40bf9de1b1aa50f5f258522aa51e04487f9157ca05d6f588c584f2847fb

See more details on using hashes here.

File details

Details for the file occasion_analysis_package-2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for occasion_analysis_package-2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7306ccb214c9e970d2eca9093fa74c1ebc01c980e3cdef6046121ae1a12f16
MD5 1671b38d3bb90459f390e44dbeb7f4ef
BLAKE2b-256 ca2faad790296a717a57c4e1e3923f53396190f027fcad14ee706d5abcf3b554

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