MOONBOOKS
  • Notes
  • Projects
  • Courses
  • Videos
  • Datasets
  • Version
    • English
    • French
  • Sign-In
Join-Us
Notes Articles Jupyter PDF
Thumbnail 1

How to plot a figure with two different axes in matplotlib ?

by Benjamin Marchant
Edited: April 19, 2023, 2:15 a.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to modify the interval of the axis ticks in matplotlib ?

by Benjamin Marchant
Edited: April 18, 2023, 6:54 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to change the color of an axis with matplotlib ?

by Benjamin Marchant
Edited: April 18, 2023, 4:14 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to insert math equations in a matplotlib figure ?

by Benjamin Marchant
Edited: April 17, 2023, 3:59 p.m.
Tags: Python; Matplotlib; LaTeX;

Public
Thumbnail 1

How to read a NASA MODIS L2 HDF4 file using python ?

by Benjamin Marchant
Edited: April 14, 2023, 11:56 p.m.
Tags: MODIS; NASA;

Public
Thumbnail 1

How to extract hexadecimal color codes from a matplotlib colormap ?

by Benjamin Marchant
Edited: April 14, 2023, 6:37 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to create a discrete colorbar with matplotlib ?

by Benjamin Marchant
Edited: April 14, 2023, 6:08 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to read and plot FIREX-AQ MASTER L2 FRP with python ?

by Benjamin Marchant
Edited: April 14, 2023, 3 a.m.
Tags: FIREXAQ; MASTER; FRP;

Public
Thumbnail 1

How to check if any row in a numpy array contains negative values ?

by Benjamin Marchant
Edited: April 13, 2023, 7:22 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to check if any row in a Pandas DataFrame contains negative values ?

by Benjamin Marchant
Edited: April 13, 2023, 7:04 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to normalize each row of an Pandas DataFrame into percentages ?

by Benjamin Marchant
Edited: April 12, 2023, 9:21 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to apply a function to the values of a column array using numpy ?

by Benjamin Marchant
Edited: April 8, 2023, 1:52 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to get data type of each column in a Pandas DataFrame ?

by Benjamin Marchant
Edited: April 7, 2023, 2:07 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to read and plot FIREX-AQ MASTER L1 with python ?

by Benjamin Marchant
Edited: March 31, 2023, 2:42 a.m.
Tags: Remote Sensing; Active Fire; Firex_AQ;

Public
Thumbnail 1

How to calculate and plot Planck's law with python ?

by Benjamin Marchant
Edited: March 30, 2023, 3 a.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to save a matplotlib figure with a given size ?

by Benjamin Marchant
Edited: March 29, 2023, 8:21 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to calculate and plot the inverse cosine in python ?

by Benjamin Marchant
Edited: March 28, 2023, 2:46 a.m.
Tags: Python; Math; Numpy;

Public
Thumbnail 1

How to read and plot CloudSat 2B-CLDCLASS-LIDAR Product using python ?

by Benjamin Marchant
Edited: March 26, 2023, 11:49 p.m.
Tags: Python; CloudSat; Caliop; Remote Sensing;

Public
Thumbnail 1

How to generate random numbers from a gamma distribution with python ?

by Benjamin Marchant
Edited: March 23, 2023, 8:08 p.m.
Tags: Python; Numpy; Scipy;

Public
Thumbnail 1

How to sort a list of numbers in ascending or descending order with python ?

by Benjamin Marchant
Edited: March 23, 2023, 3:59 a.m.

Public
Thumbnail 1

How to find the most frequent value in a pandas DataFrame column ?

by Benjamin Marchant
Edited: March 22, 2023, 3 a.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to find index of a list item in python ?

by Benjamin Marchant
Edited: March 21, 2023, 2:24 a.m.
Tags: Python; List;

Public
Thumbnail 1

How to read and plot NOAA VIIRS I-Band Active Fire Products with python ?

by Benjamin Marchant
Edited: March 19, 2023, 8:59 p.m.
Tags: Python; NOAA; Active Fire; Satellite Remote Sensing;

Public
Thumbnail 1

How to normalize each row of an array into percentages with numpy ?

by Benjamin Marchant
Edited: March 19, 2023, 5:25 p.m.
Tags: Python; Numpy; Normalization;

Public
Thumbnail 1

How to find nearest value and its index in a list with python ?

by Benjamin Marchant
Edited: March 16, 2023, 6 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to create an HTML table using a pandas DataFrame ?

by Benjamin Marchant
Edited: March 13, 2023, 9:19 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to slice a multidimensional matrix on column values with numpy ?

by Benjamin Marchant
Edited: March 13, 2023, 7:10 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to determine the nearest value and its index in an array using numpy ?

by Benjamin Marchant
Edited: March 13, 2023, 4:38 p.m.

Public
Thumbnail 1

How to sort values within a column of a pandas dataframe ?

by Benjamin Marchant
Edited: March 13, 2023, 4:16 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to select rows that contain a substring in Pandas DataFrame ?

by Benjamin Marchant
Edited: March 9, 2023, 3:44 a.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to create a video using a list of images with python ?

by Benjamin Marchant
Edited: March 8, 2023, 11:32 p.m.
Tags: Python;

Public
Thumbnail 1

How to plot confidence bands with Matplotlib ?

by Benjamin Marchant
Edited: March 7, 2023, 10:58 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to drop duplicate rows in Pandas based on column value

by Benjamin Marchant
Edited: March 7, 2023, 9:54 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to only keep n decimals after a float number in python without rounding ?

by Benjamin Marchant
Edited: March 7, 2023, 7:57 p.m.
Tags: Python;

Public
Thumbnail 1

How to calculate and plot a 2D kernel density estimation with python ?

by Benjamin Marchant
Edited: March 3, 2023, 3:52 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to select values of a pandas series ?

by Benjamin Marchant
Edited: Feb. 27, 2023, 1 a.m.
Tags: Python; Pandas; Dataframe; Series;

Public
Thumbnail 1

How to calculate the fraction in percent of a categorical variable using Pandas GroupBy ?

by Benjamin Marchant
Edited: Feb. 25, 2023, 4:23 a.m.
Tags: Python; Pandas; Dataframe; GroupBy;

Public
Thumbnail 1

How to randomly insert NaN in a matrix with numpy in python ?

by Benjamin Marchant
Edited: Feb. 24, 2023, 4:12 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to count the number of non-NaN values in every row of a pandas Dataframe ?

by Benjamin Marchant
Edited: Feb. 24, 2023, 4:08 a.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to reset the index of a pandas DataFrame ?

by Benjamin Marchant
Edited: Feb. 22, 2023, 5:57 p.m.
Tags: Python; Pandas; DataFrame; Reset;

Public
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • Next
Copyright © 2025 - All rights reserved Contact Us Terms & Conditions