Wednesday , December 2 2026

Data Science

Introduction to Matplotlib

Introduction to Matplotlib

Updated: 28 November 2026Level: BeginnerReading time: about 10 minutesMatplotlib 3.8+ Matplotlib is Python’s main plotting library. pandas and Seaborn charts are built on top of it. In this tutorial you will draw your first line chart and learn how to add titles, labels, legends, colors and grids. What You Will …

Read More »

Suicide Case Study – NumPy

Suicide Case Study – NumPy

Updated: 28 November 2026Level: IntermediateReading time: about 11 minutesNumPy · tested logic Note: This lesson analyses official statistics on suicide in India to practise NumPy. The topic is sensitive. If you or someone you know is struggling, please reach out: in India you can call the Tele-MANAS helpline 14416 (or …

Read More »

NumPy Set Operations

NumPy Set Operations

Updated: 28 November 2026Level: BeginnerReading time: about 5 minutesNumPy 1.26+ / 2.x NumPy has set functions for finding unique values and comparing arrays: union, intersection and difference. They are handy for cleaning data and comparing lists of IDs. Prerequisites Creating NumPy Arrays. Unique Values Example import numpy as np cities …

Read More »

Combine & Split an Array

Combine & Split an Array

Updated: 28 November 2026Level: BeginnerReading time: about 7 minutesNumPy 1.26+ / 2.x You often need to join arrays together (for example adding new rows of data) or split one array into parts (for example into training and test sets). Prerequisites NumPy Slicing and Indexing. concatenate Example import numpy as np …

Read More »

Array Manipulation

Array Manipulation

Updated: 28 November 2026Level: BeginnerReading time: about 10 minutesNumPy 1.26+ / 2.x Array manipulation means changing the shape or layout of an array without changing its data: reshaping, flattening, transposing, adding dimensions, and inserting or deleting elements. Getting shapes right is essential in machine learning. Prerequisites NumPy Slicing and Indexing. …

Read More »

NumPy Array Sorting

NumPy Array Sorting

Updated: 28 November 2026Level: BeginnerReading time: about 6 minutesNumPy 1.26+ / 2.x Sorting arranges values in order. NumPy can sort arrays, sort along rows or columns, and return the positions that would sort an array, which is useful for ranking. Prerequisites Creating NumPy Arrays. Sort a 1D Array Example import …

Read More »

Numpy Slicing & Indexing

Numpy Slicing & Indexing

Updated: 28 November 2026Level: BeginnerReading time: about 12 minutesNumPy 1.26+ / 2.x Indexing picks single elements, slicing picks ranges, and boolean and fancy indexing pick elements by condition or position. These are the most used NumPy skills in data analysis. Prerequisites Creating NumPy Arrays. 1D Indexing and Slicing Example import …

Read More »

Numpy Mathematic Functions

Numpy Mathematic Functions

Updated: 28 November 2026Level: BeginnerReading time: about 10 minutesNumPy 1.26+ / 2.x NumPy has fast mathematical functions that work on whole arrays: arithmetic, powers, logs, trigonometry, rounding and statistics. You can also choose to apply them along rows or columns. Prerequisites Creating NumPy Arrays. Element-wise Arithmetic Example import numpy as …

Read More »

Numpy Random Array

Numpy Random Array

Updated: 28 November 2026Level: BeginnerReading time: about 8 minutesNumPy 1.26+ / 2.x Random numbers are everywhere in machine learning: splitting data, initialising neural network weights, shuffling, and simulations. NumPy’s modern random API uses a Generator object created with np.random.default_rng(). Prerequisites Creating NumPy Arrays. Create a Generator Example import numpy as …

Read More »

Inspect an Array

Inspect an Array

Updated: 28 November 2026Level: BeginnerReading time: about 6 minutesNumPy 1.26+ / 2.x Before working with an array you usually need to know its size and structure. NumPy arrays have attributes that tell you their shape, number of dimensions, size and memory use. Prerequisites Creating NumPy Arrays. Array Attributes Example import …

Read More »