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

How to add a security captcha with a "I am not a robot" for a django project ?

by Benjamin Marchant
Edited: Aug. 21, 2023, 3:42 a.m.
Tags: Django; Captcha;

Public
Thumbnail 1

How to count the number of rows within a group when using the Pandas groupby function ?

by Benjamin Marchant
Edited: July 24, 2023, 6:46 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to check if a sentence start with a given word in python ?

by Benjamin Marchant
Edited: June 28, 2023, 2:24 a.m.
Tags: Python;

Public
Thumbnail 1

How to downsample a matrix by averaging elements n*n with numpy in python ?

by Benjamin Marchant
Edited: June 20, 2023, 2:01 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to split qualitative and categorical data columns in a pandas dataframe ?

by Benjamin Marchant
Edited: June 20, 2023, 1:29 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to select columns of a pandas Dataframe based on their data types ?

by Benjamin Marchant
Edited: June 20, 2023, 3:51 a.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to insert new characters into a string using Python ?

by Benjamin Marchant
Edited: June 19, 2023, 11:55 p.m.

Public
Thumbnail 1

How to round a float number up in python ?

by Benjamin Marchant
Edited: June 19, 2023, 4:36 p.m.
Tags: Python; Math;

Public
Thumbnail 1

How to get the names of all directories within a specific directory using python ?

by Benjamin Marchant
Edited: June 19, 2023, 3:34 a.m.
Tags: Python; OS Module;

Public
Thumbnail 1

How to merge two pandas dataframes and sum values of the shared columns ?

by Benjamin Marchant
Edited: June 16, 2023, 1:42 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to download MODIS (MYD03, MOD03) Geolocation Files using python ?

by Benjamin Marchant
Edited: June 6, 2023, 2:07 p.m.
Tags: NASA; MODIS; Remote Sensing; MOD03; MYD03;

Public
Thumbnail 1

How to aggregate daily NASA MODIS active fires using python ?

by Benjamin Marchant
Edited: June 5, 2023, 8:48 p.m.
Tags: NASA; VIIRS; Active Fire; Remote Sensing; MYD14; MOD14;

Public
Thumbnail 1

How to read and plot NASA MODIS L2 Active Fire Products using python ?

by Benjamin Marchant
Edited: June 5, 2023, 8:40 p.m.
Tags: NASA; VIIRS; Active Fire; Remote Sensing; MYD14; MOD14;

Public
Thumbnail 1

How to download MODIS L2 Active Fire Products (MYD14, MOD14) using python ?

by Benjamin Marchant
Edited: June 5, 2023, 8:29 p.m.
Tags: MODIS; Active Fire; MYD14; MOD14; Remote Sensing;

Public
Thumbnail 1

Daily Spatial Aggregation of NOAA VIIRS IBAND Active Fire Product

by Benjamin Marchant
Edited: June 5, 2023, 7:23 p.m.
Tags: NOAA; VIIRS; Active Fire; Remote Sensing; Aggregation;

Public
Thumbnail 1

How to save a numpy 2D array in a text file in python ?

by Benjamin Marchant
Edited: June 5, 2023, 6:46 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to overlay an image on a folium interactive map with Python ?

by Benjamin Marchant
Edited: June 5, 2023, 3:35 p.m.
Tags: Python; Folium;

Public
Thumbnail 1

How to transpose a pandas dataframe to switch its rows and columns ?

by Benjamin Marchant
Edited: May 22, 2023, 7:18 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to transform a series into a dataframe using pandas ?

by Benjamin Marchant
Edited: May 22, 2023, 7:09 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to display a Folium Map within a for loop in a Jupyter Notebook ?

by Benjamin Marchant
Edited: May 22, 2023, 4:01 p.m.
Tags: Python; Folium;

Public
Thumbnail 1

How to clear the output in a Jupyter Notebook cell after each for loop iteration ?

by Benjamin Marchant
Edited: May 22, 2023, 3:06 p.m.
Tags: Python;

Public
Thumbnail 1

How to rearrange the order of the columns in a Pandas DataFrame ?

by Benjamin Marchant
Edited: May 22, 2023, 2:38 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to apply a function with arguments to a pandas DataFrame ?

by Benjamin Marchant
Edited: May 22, 2023, 2:38 a.m.

Public
Thumbnail 1

How to loop (iterate) through every row of a pandas DataFrame ?

by Benjamin Marchant
Edited: May 19, 2023, 2:20 a.m.

Public
Thumbnail 1

How to filter a GeoPandas dataframe based on latitude or longitude ?

by Benjamin Marchant
Edited: May 17, 2023, 3:33 a.m.

Public
Thumbnail 1

How to replace nan value with zero using numpy ?

by Benjamin Marchant
Edited: May 16, 2023, 11:38 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to create and save a matplotlib figure without frame and labels ?

by Benjamin Marchant
Edited: May 16, 2023, 3 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to import and rotate an image using matplotlib ?

by Benjamin Marchant
Edited: May 15, 2023, 6:07 p.m.
Tags: Python; Scipy; Matplotlib; Image; Numpy;

Public
Thumbnail 1

How to retrieve country name for a given latitude and longitude using python ?

by Benjamin Marchant
Edited: May 4, 2023, 9:03 p.m.
Tags: Python;

Public
Thumbnail 1

How to cluster data from a 2D binary matrix in python ?

by Benjamin Marchant
Edited: May 1, 2023, 3:38 p.m.
Tags: Python; Machine Learning; Clustering;

Public
Thumbnail 1

How to open and read a HDF5 files with python ?

by Benjamin Marchant
Edited: May 1, 2023, 2:31 a.m.
Tags: Python; HDF;

Public
Thumbnail 1

How to insert a new row into a SQLite table with SQLAlachemy ?

by Benjamin Marchant
Edited: April 28, 2023, 12:09 a.m.
Tags: Python; SQLAlchemy;

Public
Thumbnail 1

How to use Python and SQLAlchemy to get a list of all table names in a SQLite database ?

by Benjamin Marchant
Edited: April 27, 2023, 9:46 p.m.
Tags: Python; SQLAlchemy;

Public
Thumbnail 1

How to retrieve table column names in a Sqlite database using python and SQLAlchemy ?

by Benjamin Marchant
Edited: April 27, 2023, 6:35 p.m.
Tags: Python; SQLAlchemy;

Public
Thumbnail 1

How to retrieve the column names of a table in Sqlite database ?

by Benjamin Marchant
Edited: April 27, 2023, 5:55 p.m.
Tags: SQL; Sqlite3;

Public
Thumbnail 1

Regridding of NASA VIIRS L2 Active Fire product ?

by Benjamin Marchant
Edited: April 27, 2023, 2:47 a.m.

Public
Thumbnail 1

How to read and plot NASA VIIRS Active Fire VNP14IMG product using python ?

by Benjamin Marchant
Edited: April 25, 2023, 2:45 a.m.

Public
Thumbnail 1

How to find out the version of a Python module ?

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

Public
Thumbnail 1

How to compare two dates in a pandas DataFrame ?

by Benjamin Marchant
Edited: April 20, 2023, 6:15 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to custom x or y axis in a matplotlib figure ?

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

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