Code Monkey home page Code Monkey logo

userevents-stats's Introduction

Streamlit Event Analysis App

Description

This repository contains two Python scripts for analyzing event data and visualizing it using Streamlit.

  • test.py: This script processes event data files and generates an output CSV file containing the analyzed data.
  • app.py: This script is a Streamlit web application that allows users to upload the output CSV file generated by test.py and visualize the analyzed data.

Usage

1. Cloning the Repository

To get started, clone the repository to your local machine:

git clone <repository-url>
cd <repository-directory>

2. Running test.py

Before running test.py, you need to specify the input file path where the event data files are located and the output file path where you want to store the generated CSV file within the code itself. Open test.py in a text editor and locate the following lines:

# Input directory path where event data files are located
input_directory = "/path/to/userevents"

# Output directory path where output CSV file will be stored
output_directory = "/path/to/output"

Replace "/path/to/userevents" with the actual directory path where the event data files are stored, and "/path/to/output" with the desired directory path where you want to store the output CSV file.

After setting the input and output directory paths, you can run test.py using the following command:

python test.py

3. Running app.py

To run app.py, follow these steps:

  1. Make sure you have the required dependencies installed. You can install them using pip:

    pip install -r requirements.txt
  2. Navigate to the directory containing app.py in your terminal:

    cd <repository-directory>
  3. Run the Streamlit app with the following command:

    streamlit run app.py
  4. The Streamlit app will start running, and you can access it in your web browser at http://localhost:8501.

  5. Alternatively, you can also upload the output CSV file directly on the Streamlit app hosted here.

4. Using the Streamlit App

Once the Streamlit app is running, follow these steps to use it:

  1. Upload the output CSV file generated by test.py using the file uploader in the Streamlit app.

  2. Once the file is uploaded, you can view and analyze the data using the various visualization options provided in the app interface.

userevents-stats's People

Contributors

satmm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.