This project contains three Python files for data analysis using Spark. The files included are:
airbnb_data.pynetflix_data.pytwitter_data.py
You can run these files using Python 3 to get all the results required by the exercise. However, for better visualization of the data, it is recommended to run the Streamlit server, which contains more visual elements.
Below are some screenshots of the UI:
- Clone the repository.
- Ensure you have Python 3 installed.
- Install the required dependencies using:
pip install -r requirements.txt - Download the dataset using
curland unzip it into thedatasetsdirectory.
curl -o datasets/listings.csv.gz https://data.insideairbnb.com/united-kingdom/england/london/2024-03-19/data/listings.csv.gz
gunzip datasets/listings.csv.gz
- Run the desired script using Python or start the Streamlit server for interactive visualization.
To run the scripts, use the following command:
streamlit run streamlit_app.py
To run the scripts, use the following command:
python3 data_sources/<script_name.py>
For enhanced data visualization, use the Streamlit application. The Streamlit server provides a more interactive and visual approach to analyze the data.
- The primary tool used for data analysis is Spark.
- Pandas is used in the Streamlit files because the framework requires it, but all the analysis is done using Spark.
- Airbnb Data: The latest file as of June 7, 2024, was obtained from Inside Airbnb.
- Netflix Data: Data for Netflix analysis.
- Twitter Data: Data for Twitter analysis.
All the datasets used are included in the repository within the /datasets folder.
- Ensure that the datasets are in the
/datasetsfolder for the scripts to run correctly.


