Project Overview

This project is a fully end-to-end analytics pipeline built on my own anime watch history. Starting with collecting detailed information on all the anime and their related franchises I’ve watched, I cleaned and organised the data to ensure quality. Through exploratory analysis and visualisation, I identified trends in genres, themes, and demographics, which enabled me to pinpoint underexplored areas in my taste profile. These insights form the foundation for personalised recommendations designed to guide my future anime selections with a balance of familiarity and novelty and lay the groundwork for a smarter, personalised recommendation system that’s truly built around my own tastes.

This project started with a simple idea:

What anime should I watch next?

I began by listing all the anime I remember watching in full (non-exhaustive, but close). But I didn’t just want to analyse specific seasons or individual titles, I was also curious about everything connected to them like sequels, prequels, spin-offs, specials etc.,. Basically, the entire franchise.

However, most datasets I found on Kaggle were extensive but outdated - they didn’t cover newer or currently airing shows on my list. So, I decided to create my own dataset from scratch - using Jikan API, an unofficial API that pulls data from MyAnimeList.

The project follows three phases:

⚙️ Phase 1: Data Collection

This phase focuses on gathering structured metadata for the anime in my personal watchlist. The main steps were:

👉 Explore the Full Data Collection Pipeline

if __name__ == "__main__":
    anime_franchises = all_watched_anime
    all_batches = []

    # 1) Split into batches
    for b, batch in enumerate(split_into_batches(anime_franchises, 5), start=1):
        print(f"\n🚀 Running Batch {b}")
        batch_data = fetch_all_franchises(batch)
        print(f"✅ Batch {b} completed")
        all_batches.extend(batch_data)
        time.sleep(20)

    #2) Build DataFrame
    df = pd.DataFrame(all_batches)

    #3) Fill in missing episodes    
    df["episodes"] = df.apply(fetch_episode_count, axis=1)
    df.reset_index(drop=True, inplace=True)

    #4) Save the DataFrame
    df.to_csv("all_anime_fran.csv", index=False)
    print("🎉 All data fetched, episodes filled, and saved to all_anime_fran.csv

🧹 Phase 2: Data Cleaning & Preprocessing

This phase focused on cleaning, filtering, and preparing the raw metadata for analysis. The original dataset had over 600 rows and 60+ columns, many of which were messy, nested, or redundant.

Key steps included: