Overall Outcome: These Python projects demonstrate the ability to transform raw datasets into actionable insights through structured analysis and predictive modeling. The Titanic dataset highlights demographic and socioeconomic factors in survival outcomes, while the California housing project showcases practical machine learning for price prediction. Together, they illustrate readiness to apply Python analytics to diverse, real‑world problems.
To begin exploring the Titanic dataset, I used Python’s pandas library. I imported pandas with the alias pd to simplify function calls and then defined the file path to the dataset stored locally on my computer. This setup allowed me to quickly load the CSV into a pandas DataFrame for cleaning and analysis.
import pandas as pd
file_path = r"C:\Users\gemyk\Downloads\titanic.csv"
I used pandas to read the Titanic dataset into a DataFrame with:
titanic = pd.read_csv(file_path)
To quickly inspect the structure and confirm the data loaded correctly, I applied:
titanic.head()
titanic.tail(10)
which displays the first 5 rows and the last 10. This gave me an immediate snapshot of the columns and values before moving into cleaning and analysis.
Result:


After loading the Titanic dataset, I used titanic.shape to quickly view its dimensions.
This command returned the number of rows and columns (891, 12), giving me an immediate sense of the dataset’s size and structure before diving into deeper analysis.
I then applied titanic.info() to review the dataset’s overall structure. This command displayed the column names, data types, and counts of non‑null values, helping me quickly identify which fields were numeric, categorical or missing data. It provided a clear overview before moving into cleaning and analysis.

To improve readability, I renamed the “Sex” column to “Gender” using: