Disclaimer: This is an old Project from when I started learning Python from 2019 (not the best written code)!! A GUI for flexibly organizing Data Analytics related tasks/functions and adding custom User Input Fields if needed.
Project description
Tiny Data Analytics Tool
A tiny data analytics tool from when I started learning Python
Table of Contents
About The Project
This is a tiny Data Analytics Tool from when started learning Python in 2019. I don't maintain it and decided primarily to publish it for a friend of mine, who needed such “tiny” tool for his local Data Analytics Scripts. An Example of how to use is provided below under the Getting Started section.
That said... This is a tiny tool encompassing a GUI for flexibly organizing Data Analytics related tasks/functions and adding custom User Input Fields if needed. It builds up a Tkinter GUI where custom functions can be started and if needed provide User Input. It can plainly execute some logic or render Matplotlib Graphs.
Built With
Getting Started
import pandas as pd
from tiny_data_analytics_tool.TinyDataAnalyticsTool import TinyDataAnalyticsTool
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use("TkAgg")
def myFunc(*args, **kwargs):
# Nested dictionary of User Input including Tkinter Objects for further manipulations if required
user_inputs : dict = kwargs.get('user_inputs')
# Trimmed only if User did NOT select option 'All'
trimmed_data_based_on_user_input :pd.DataFrame = kwargs.get('data')
print(user_inputs)
print(trimmed_data_based_on_user_input)
plt.hist(trimmed_data_based_on_user_input["Column1"])
plt.show()
def main():
#Import: Use the function name (e.g. myFunc) consistent
# Read your Data as Pandas Data Frame
data = pd.DataFrame({'Column1': [1,2,3,4,5],'Column2':[5,4,3,2,1]})
#Here you give as parameter your Data
dict_data = {'myFunc' : data}
#Here you specify the function which shall be called in the Analytics Class above
func_dict = {"myFunc" : myFunc}
#Here you specify special options for your DropDown menu, for example if the analysis should be based on relative or absoloute values
#You can pass multiple special dicts in form of a nested dict
dict_special_dropdown_options = {'myFunc' : {'Method (Parameters to choose from as a User not in dataset)' : ['Mean' , 'Median', 'Standarddeviation']}}
#Here you specify Parameters which correspond to the column names in the dataFrame
option_parameters_from_dataset_columns = {"myFunc" : ['Column1', 'Column2']}
#here you can change the name of the column names for aesthetic reasons.
func_parameters_desc = {"myFunc" : {'Column1' : 'Choice 1', 'Column2' : 'Choice 2'}}
#Create the Gui and insert the parameters
TinyDataAnalyticsTool(func_dict, option_parameters_from_dataset_columns, dict_data = dict_data,
func_parameters_display_descr=func_parameters_desc,
dict_special_dropdown_options=dict_special_dropdown_options)
if __name__ == '__main__':
main()
Prerequisites
Python >=3.6
Installation
pip install TinyDataAnalyticsTool
License
Distributed under the MIT License. See LICENSE for more information.
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
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 TinyDataAnalyticsTool-0.1.0.tar.gz.
File metadata
- Download URL: TinyDataAnalyticsTool-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6cf7112dbb60a88962e68566ea4d35b00af1be46e2e5563a15833b2355b9520
|
|
| MD5 |
56f8cd66cff18fb6b705d394d09400d5
|
|
| BLAKE2b-256 |
df4d84f0ba84efca2fe5aaea5091ed37174a4b1864a0df7432e219088d4838a8
|
File details
Details for the file TinyDataAnalyticsTool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: TinyDataAnalyticsTool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5103d0adad043af8f234423e29b1b53bb81caeed25e1a6740b872aab6f13ab8
|
|
| MD5 |
34810de9c3ab6b2c16a6cc8f40483957
|
|
| BLAKE2b-256 |
7ca730c9270c9575f1a27ddbcd8364dc15ec1455ff9a93272f2e2286dc62312f
|