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

How to plot a RGB image from MODIS MYD021KM products ?

by Benjamin Marchant
Edited: Oct. 17, 2021, 6:33 p.m.
Tags: Python; MODIS; MYD021KM; Visualization;

Public
Thumbnail 1

How to create a matrix of random numbers with numpy in python ?

by Benjamin Marchant
Edited: Sept. 28, 2021, 9:41 p.m.
Tags: Python; Numpy; Random;

Public
Thumbnail 1

How to replace or remove a word in a string in python ?

by Benjamin Marchant
Edited: Sept. 28, 2021, 2:05 a.m.
Tags: Python; Strings;

Public
Thumbnail 1

How to check if a character from a string is a letter, a number, a special character or a whitespace in python ?

by Benjamin Marchant
Edited: Sept. 27, 2021, 7:23 p.m.
Tags: Python; Strings;

Public
Thumbnail 1

How to shift values in a dataframe column with pandas ?

by Benjamin Marchant
Edited: Sept. 27, 2021, 4:07 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to get unique values in a list in python ?

by Benjamin Marchant
Edited: Sept. 23, 2021, 12:11 a.m.
Tags: Python; List;

Public
Thumbnail 1

How to reverse a string in python ?

by Benjamin Marchant
Edited: Sept. 22, 2021, 6:39 p.m.
Tags: Python; Strings;

Public
Thumbnail 1

How to remove leading spaces in a string with python ?

by Benjamin Marchant
Edited: Sept. 22, 2021, 5:52 p.m.
Tags: Python; Strings;

Public
Thumbnail 1

How to find common elements (e.g. intersection) between two lists in python ?

by Benjamin Marchant
Edited: Sept. 21, 2021, 9:14 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to create a list of US states in python ?

by Benjamin Marchant
Edited: Sept. 21, 2021, 6:24 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to convert a matrix of floats into a matrix of integers with numpy in python ?

by Benjamin Marchant
Edited: Sept. 21, 2021, 6 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to calculate the mean along a given axis with numpy in python ?

by Benjamin Marchant
Edited: Sept. 19, 2021, 3:02 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to calculate the sum along an axis with numpy in python ?

by Benjamin Marchant
Edited: Sept. 19, 2021, 2:24 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to add a name or rename an axis of a dataframe with pandas ?

by Benjamin Marchant
Edited: Sept. 18, 2021, 3:09 a.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to store a multidimensional matrix in a dataframe with pandas ?

by Benjamin Marchant
Edited: Sept. 17, 2021, 6:31 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to swap indexes in a multiple indexes dataframe with pandas ?

by Benjamin Marchant
Edited: Sept. 17, 2021, 4:55 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to create a dataframe with multiple indexes with pandas ?

by Benjamin Marchant
Edited: Sept. 17, 2021, 2:36 a.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to calculate the Pearson’s Correlation coefficient between two datasets in python ?

by Benjamin Marchant
Edited: Sept. 16, 2021, 7:39 p.m.
Tags: Python; Numpy; Scipy;

Public
Thumbnail 1

How to calculate the absolute value of each element of an array or matrix in python with numpy ?

by Benjamin Marchant
Edited: Sept. 14, 2021, 2:39 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to perform a 1D convolution in python ?

by Benjamin Marchant
Edited: Sept. 13, 2021, 7:21 p.m.
Tags: Python; Numpy; Scipy;

Public
Thumbnail 1

How to add or append a new element to a tuple in python ?

by Benjamin Marchant
Edited: Sept. 9, 2021, 2:52 a.m.
Tags: Python; Tuple; Data Structure;

Public
Thumbnail 1

How to replace rows of a dataframe using rows of another dataframe based on indexes with pandas ?

by Benjamin Marchant
Edited: Sept. 8, 2021, 1:58 a.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to select nth element in a list with python ?

by Benjamin Marchant
Edited: Sept. 3, 2021, 6:08 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to drop a specific row in a dataframe with pandas ?

by Benjamin Marchant
Edited: Sept. 2, 2021, 4:49 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to sum all rows of a dataframe with pandas ?

by Benjamin Marchant
Edited: Aug. 31, 2021, 2:30 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to sum multiple columns together of a dataframe with pandas in python ?

by Benjamin Marchant
Edited: Aug. 30, 2021, 9:28 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to use Groupby and Aggregate with pandas in python ?

by Benjamin Marchant
Edited: Aug. 11, 2021, 6:34 p.m.
Tags: Python; Pandas; DataFrame; GroupBy; Aggregate;

Public
Thumbnail 1

How to use a dataframe column as index with pandas ?

by Benjamin Marchant
Edited: Aug. 11, 2021, 4:07 p.m.
Tags: Python; Pandas; DataFrame; Index; Column;

Public
Thumbnail 1

How to convolve two 2-dimensional matrices in python with scipy?

by Benjamin Marchant
Edited: Aug. 10, 2021, 6:51 p.m.
Tags: Python; Numpy; Scipy; Convolution; Machine Learning; image processing;

Public
Thumbnail 1

How to reload a python module or package ?

by Benjamin Marchant
Edited: Aug. 9, 2021, 2:23 p.m.
Tags: Python; Module; Package; Reload;

Public
Thumbnail 1

How to get every nth element in a list in python ?

by Benjamin Marchant
Edited: Aug. 7, 2021, 7:17 p.m.
Tags: Python; List; Slicing;

Public
Thumbnail 1

How to slice a list in python ?

by Benjamin Marchant
Edited: Aug. 7, 2021, 6:53 p.m.
Tags: Python; List; Slice; len();

Public
Thumbnail 1

How to slice a dictionary (e.g create a sub-dictionary or sample) in python ?

by Benjamin Marchant
Edited: Aug. 7, 2021, 2:03 p.m.
Tags: Python; Dictionary; Slice; Sample;

Public
Thumbnail 1

How to shuffle randomly elements of a list in python ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 8:55 p.m.
Tags: Python; List; Random; Sample; shuffle;

Public
Thumbnail 1

How to shuffle randomly dictionary keys in python 3 ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 7:34 p.m.
Tags: Python; Dictionary; Random; Shuffle; Sample;

Public
Thumbnail 1

How to select randomly keys from a dictionary in python 3 ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 6:59 p.m.
Tags: Python; Dictionary; Random; Sample;

Public
Thumbnail 1

How to get the number of keys in a dictionary in python ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 3:44 a.m.
Tags: Python; Dictionary; Size;

Public
Thumbnail 1

How to iterate over a dictionary (keys and values) in python using a for loop ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 12:33 a.m.
Tags: Python; Dictionary; For Loop;

Public
Thumbnail 1

How to add a number into a string in python 3 ?

by Benjamin Marchant
Edited: July 22, 2021, 4:12 a.m.
Tags: Python; Format;

Public
Thumbnail 1

How to add a new path to your PYTHONPATH to import your own python modules or packages ?

by Benjamin Marchant
Edited: July 21, 2021, 3:39 p.m.
Tags: Python; PYTHONPATH; Python Module; Python Package;

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