This project involves the analysis of user data using Python and the Pandas library. The dataset is obtained from this source, and it contains information about users' ages, genders, occupations, and more.
This repository contains Python code for analyzing user data using the Pandas library. The analysis includes various steps to explore and understand the dataset, such as calculating statistics, summarizing columns, and determining frequent values. The primary goals of this project are:
- Analyze user data dataset using Pandas.
- Calculate statistics like the number of observations, number of columns, and more.
- Summarize columns to gain insights into data.
- Determine the mean age of users and the least frequent age.
- Import necessary libraries, including Pandas and NumPy.
- Import the user data dataset from the provided source.
- Assign the dataset to a variable called
users
and set 'user_id' as the index. - Display the first 25 and last 10 entries in the dataset.
- Determine the number of observations and columns in the dataset.
- Print the names of all the columns.
- Explore dataset indexing.
- Print the data type of each column.
- Print only the 'occupation' column.
- Calculate the number of different occupations in the dataset.
- Determine the most frequent occupation.
- Summarize the DataFrame using
describe()
andinfo()
functions. - Summarize all the columns using
describe()
withinclude='all'
. - Summarize only the 'occupation' column using
describe()
. - Calculate the mean age of users.
- Determine the age with the least occurrence.
User-Data-Analysis/
│
├── user_analysis.ipynb # Jupyter Notebook with analysis code
├── u.user # Dataset file
└── readme.md # Project summary
- Clone the repository using:
git clone https://github.com/your-username/User-Data-Analysis.git
- Navigate to the repository:
cd User-Data-Analysis
- Open the
user_analysis.ipynb
notebook to see the detailed analysis steps and results.
- The dataset is sourced from justmarkham on GitHub.
- Special thanks to the contributors of the Pandas and NumPy libraries for providing the tools for data analysis.