The Phonepe Transaction and User Data Visualization project is a Python-based solution that extracts data from the Phonepe Pulse Github repository, transforms and stores it in a MySQL database, and displays it through an interactive dashboard using Streamlit, Plotly and few other visualization and data manipulation libraries. The solution includes multiple pages with various visualizations, allowing users to select different facts and figures to display. The project is efficient, secure, and user-friendly, providing valuable insights and information about the data in the Phonepe Pulse Github repository.
Before you begin, you will need to have a few tools and libraries installed on your machine:
- Python 3.7 or higher. [Note: Streamlit only supports .py files as of now. So, notebook(.ipynb) files are not recommended]
- Git software.
- MySQL software.
- The pandas, streamlit, plotly, seaborn, altair, and mysql-connector-python packages.
Python is the programming language used to develop this project. It is a popular high-level programming language known for its readability and versatility. It is widely used for web development, data analysis, and machine learning. It provides a powerful and flexible foundation for working with data.
Git is a version control system used for tracking changes in code. It is commonly used for collaborating on code and managing code changes. We used it here to clone the Pulse repository and extract the required data for analysis.
Pandas is a popular Python library used for data manipulation and analysis. We used pandas to clean and preprocess the data, create new features, and perform data analysis. It provides a wide range of functions and methods for working with data.
MySQL is an open-source relational database management system. We used it here to store and manage the cleaned and processed data. It provides a scalable and secure solution for managing large amounts of data.
Streamlit is an open-source Python library used for building web applications. We used it here to create a multi-page application for visualizing the data. It provides an intuitive and user-friendly interface for exploring and analyzing data.
Plotly is a data visualization library used for creating interactive and dynamic plots. We used it here to create a variety of charts and visualizations, such as pie charts, bar charts, line plots, and choropleth maps. It provides a wide range of customization options and interactivity features.
Altair is a declarative data visualization library for Python. We used it here to create interactive visualizations using a grammar of graphics approach. It provides a simple and concise syntax for creating complex and dynamic visualizations.
1. Go to the web app URL in your web browser.
2. Explore the features in every page of the app.
3. Use the user friendly interface and give inputs as per your needs and get insightful visualizations.
To run the app, follow these steps:
1. Clone the repository to your local machine using the following command: git clone [https://github.com/Nirmal7781/Phonepe_Pulse.git].
2. Install the required libraries by running the following command: pip install -r requirements.txt.
3. Run the .ipynb file to clean and transform the data and generate the eight CSV files.
4. Create a MySQL database and tables, define constraints, and push data into MySQL using user-defined functions.
5. Open a terminal window and navigate to the directory where the app is located using the following command: cd [Home.py file directory].
6. Run the Streamlit app using the command [streamlit run Home.py] and access the app through the local URL provided.
7. The app should now be running on a local server. If it doesn't start automatically, you can access it by going to either
* Local URL: [http://localhost:8501] or * Network URL: [http://192.168.43.83:8501].
8. Explore the different pages of the app, enter inputs as required, and interact with the visualizations to gain insights into the PhonePe transaction data.
To modify the app, you can:
1. Add new data sources or metrics to the dashboard.
2. Customize the UI by modifying the existing components or creating new ones.
3. Integrate the app with other data sources or APIs.
4. Improve the performance of the app by optimizing the code or using caching techniques.
-
Identifying trends and patterns: Data scientists can use the app to identify trends and patterns in transaction data, such as which categories of transactions are increasing or decreasing in frequency.
-
Conducting market research: The app can be used to analyze transaction data to gain insights into consumer behavior and preferences, which can be valuable for conducting market research.
-
Developing predictive models: The insights gained from analyzing the transaction data can be used to develop predictive models, such as predicting future transaction volumes or identifying customers who are likely to churn.
-
Monitoring business performance: Data scientists can use the app to monitor the performance of various business metrics, such as transaction volume, revenue, and customer acquisition and retention.
-
Improving customer experience: By analyzing transaction data and identifying areas where customers are experiencing friction or challenges, data scientists can work with product teams to improve the customer experience and increase customer satisfaction.
This application is intended for educational and research purposes only and should not be used for any commercial or unethical activities.
If you have any questions, comments, or suggestions for the app, please feel free to contact me at [[email protected]]