Skip to content

newsdatahub/newsdatahub-data-science-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 

Repository files navigation

NewsDataHub Data Science Tutorials

This repository contains practical, real-world Python data science and analytics tutorials built using live or sample news datasets from the NewsDataHub API.

Each tutorial demonstrates how to transform raw news articles into meaningful visualizations, insights, and analytics using popular Python libraries such as Pandas, Matplotlib, Plotly, and more.

What's Included

Each tutorial folder contains:

  • A complete Python script (main.py or equivalent)
  • A Jupyter Notebook with step-by-step explanations
  • Sample input data
  • Generated charts and visualization images
  • A tutorial-specific README with instructions and context

All tutorials use either sample NDH data or free-tier API responses, making them fully runnable out of the box.


Tutorials Included

Below are the completed tutorials currently in this repository:

✔ Data Visualization Tutorials

  • Bar Charts — Visualizing topic or source distribution
  • Treemaps — Mapping hierarchical topic proportions
  • Circular News Wheel — Polar area charts to display news topic distribution
  • Sankey Diagram — Topic flow across categories
  • Chord Diagram — Visualizing topic co-occurrence patterns

How to Use This Repo

  1. Pick a tutorial from the list
  2. Open the folder → run the notebook or script
  3. Use the included code as-is or adapt it for your own analytics projects
  4. (Optional) Plug in your own NewsDataHub API key for live data

About NewsDataHub

NewsDataHub provides:

  • Real-time and historical news data
  • 40+ languages
  • 170+ countries
  • Clean structured JSON
  • Easy filtering, search, and topic extraction

Perfect for:

  • Dashboards
  • AI/ML pipelines
  • Data science projects
  • Monitoring
  • Research

Learn more → https://newsdatahub.com

Stay tuned — this repo is updated weekly.

About

A collection of Python data-viz tutorials built with real news datasets from NewsDataHub. Includes notebooks, scripts, and examples for bar charts, treemaps, Sankey diagrams, news wheels, and more.

Topics

Resources

Stars

Watchers

Forks

Contributors