This project features a command-line interface (CLI) dashboard designed to display some insights extracted from a Spotify dataframe. The process involves cleaning the dataframe using PySpark, as demonstrated in the Jupyter notebook. The filtered dataframe is then utilized to visualize compelling information through the dashboard.
The dashboard is implemented in Python and leverages the "rich" library, enabling the creation and styling of layouts and texts within the terminal. Additionally, graph plotting libraries are employed to enhance the visualization of data.
-
Data Cleaning: The initial step involves cleaning the Spotify dataframe using PySpark. Refer to the accompanying Jupyter notebook for a detailed walkthrough of the cleaning process.
-
Dashboard Creation: The core of the project is a CLI dashboard designed in Python. The "rich" library is utilized to craft visually appealing layouts and texts within the terminal. This includes the incorporation of graph plotting libraries to present insightful visualizations.
To execute the project, follow these steps:
-
Install Dependencies: Make sure to install the required dependencies by running:
pip install -r requirements.txt
-
Run the Jupyter Notebook: Execute the Jupyter notebook to perform data cleaning on the Spotify dataframe.
-
Run the CLI Dashboard: Run the Python script responsible for generating the CLI dashboard. Ensure that the necessary libraries and dependencies are installed.
python cli-dashboard/app.py
- I recommend creating python virtual environment to run the script.
- Works best with green on black terminal theme.