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).
- export_data_to_csv(credential_file_path, export_file_path): The function will export data based on SQL query into csv file. For data loading, 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'
Parameters:
credential_file_path (string): File Path for Credential File without file name (as it is set to credentials.env). Please enter file path with double backslash "\\".
export_file_path (string): File Path to export the data(as it is set to occasion.csv). Please enter file path with double backslash "\\".
Package Import: psycopg2, os, csv, io, pandas, dotenv
- create_word_cloud(import_file_path,stop_words): The function will create Word Cloud using Document Term Matrix.
Parameters:
import_file_path (string): File Path to export the data. Please enter file path with double backslash "\\" with file name. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.
stop_words (list/string): Enter the list of stop words, which should be avoided while creating word cloud. Example: "mother, mom, mum".
Package Import: numpy, pandas, matplotlib, re, string, spacy, CountVectorizer
- create_emoji_chart(import_file_path): The function will create Emoji Frequency Chart.
Parameters:
import_file_path (string): File Path to export the data. Please enter file path with double backslash "\\" with file name. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.
Package Import: pandas, plotly, advertools
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
Hashes for occasion_analysis_package-1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f2b0317681fcec85a5ed71ea25826a7c96423feff3c4cbc2f59d11c47cba360 |
|
MD5 | 3ddda2e8d91698557f29abe17ad75c8a |
|
BLAKE2b-256 | de9f9213f3692a3dcc6538fad786d69ce65aabc7a719ab8f3ce070ab6f286f9f |
Hashes for occasion_analysis_package-1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb54954022b00f18f4e95a2c2adafb23b421621cb430550cac072a76e8ec512c |
|
MD5 | d2103818e20c031f7a84774a8390e379 |
|
BLAKE2b-256 | 9fdc8ad9e8b767715e7f44e8fa757ec946fd349fe3cff6b8199523aee49c6103 |