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

How to retrieve polygon coordinates from a GeoPandas DataFrame ?

by Benjamin Marchant
Edited: Feb. 20, 2024, 5:58 p.m.
Tags: Geopandas;

Public
Thumbnail 1

How can the statistical standard score or Z-score be calculated and plotted using Python ?

by Benjamin Marchant
Edited: Feb. 19, 2024, 3:12 a.m.
Tags: Python; Scipy;

Public
Thumbnail 1

How to create a GeoDataFrame with Polygon geometry from a Pandas DataFrame with coordinates ?

by Benjamin Marchant
Edited: Feb. 16, 2024, 1:13 p.m.
Tags: Python; Geopandas;

Public
Thumbnail 1

How to generate and plot random numbers from a normal (Gaussian) distribution using python and matplotlib ?

by Benjamin Marchant
Edited: Feb. 12, 2024, 10:39 p.m.
Tags: Python; Numpy; Random numbers;

Public
Thumbnail 1

How to plot a polygon on an interactive map using Bokeh in Python ?

by Benjamin Marchant
Edited: Feb. 12, 2024, 8:12 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to extract longitudes and latitudes from a geometry column with points within a GeoPandas DataFrame ?

by Benjamin Marchant
Edited: Feb. 12, 2024, 3:37 p.m.
Tags: Python; Geopandas;

Public
Thumbnail 1

How to create a GeoDataFrame from a Pandas DataFrame ?

by Benjamin Marchant
Edited: Feb. 11, 2024, 2:51 p.m.
Tags: Python; Geopandas;

Public
Thumbnail 1

How to convert longitudes and latitudes into mercator coordinates using python ?

by Benjamin Marchant
Edited: Feb. 10, 2024, 3:25 a.m.
Tags: Python;

Public
Thumbnail 1

How to use bokeh in a Jupyter notebook without opening a separate window ?

by Benjamin Marchant
Edited: Feb. 9, 2024, 7:45 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to plot points from longitudes and latitudes on a map using Bokeh and python ?

by Benjamin Marchant
Edited: Feb. 6, 2024, 3:57 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to convert a Jupyter notebook into a Python script ?

by Benjamin Marchant
Edited: Feb. 6, 2024, 3:55 a.m.
Tags: Python;

Public
Thumbnail 1

How to remove unused modules in a Python script ?

by Benjamin Marchant
Edited: Feb. 5, 2024, 11:15 p.m.
Tags: Python;

Public
Thumbnail 1

How to create a map with Bokeh with a satellite image in the background ?

by Benjamin Marchant
Edited: Feb. 2, 2024, 10:37 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to remove grid lines from a Bokeh plot ?

by Benjamin Marchant
Edited: Feb. 2, 2024, 6:13 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to shift elements in a numpy array ?

by Benjamin Marchant
Edited: Feb. 2, 2024, 12:39 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to merge two Pandas DataFrames based on the nearest DateTime ?

by Benjamin Marchant
Edited: Jan. 27, 2024, 1:39 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to add a title to a seaborn plot ?

by Benjamin Marchant
Edited: Jan. 21, 2024, 4:06 p.m.
Tags: Python; Seaborn;

Public
Thumbnail 1

How to find the minimum value in each row of a numpy array ?

by Benjamin Marchant
Edited: Jan. 21, 2024, 4:31 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

What is the most efficient way to identify and remove outlier points using Python ?

by Benjamin Marchant
Edited: Jan. 19, 2024, 8:59 p.m.
Tags: Python;

Public
Thumbnail 1

How to create a distance matrix from two numpy arrays of points ?

by Benjamin Marchant
Edited: Jan. 19, 2024, 1:52 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to change the font size of axis tick labels on a matplotlib figure ?

by Benjamin Marchant
Edited: Jan. 12, 2024, 6:59 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to check if a date is between two dates in python ?

by Benjamin Marchant
Edited: Jan. 11, 2024, 6:31 p.m.
Tags: Python;

Public
Thumbnail 1

How to calculate the sum of all elements in a numpy matrix ?

by Benjamin Marchant
Edited: Jan. 10, 2024, 8:17 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to randomly select elements from a list in python ?

by Benjamin Marchant
Edited: Jan. 10, 2024, 6:02 p.m.
Tags: Python; List; Random; Sample;

Public
Thumbnail 1

How to add a title to a bokeh plot ?

by Benjamin Marchant
Edited: Jan. 10, 2024, 1:21 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to retrieve data from a Bokeh ColumnDataSource ?

by Benjamin Marchant
Edited: Jan. 9, 2024, 8:47 p.m.
Tags: Python; Bokeh;

Public
Thumbnail 1

How to get the number of days between two dates in python ?

by Benjamin Marchant
Edited: Jan. 9, 2024, 3:33 p.m.
Tags: Python;

Public
Thumbnail 1

How to extract the number of days from a timedelta object in Python ?

by Benjamin Marchant
Edited: Jan. 9, 2024, 3:16 a.m.
Tags: Python;

Public
Thumbnail 1

How to add or subtract a certain number of days from a given date in python ?

by Benjamin Marchant
Edited: Jan. 7, 2024, 2:16 p.m.
Tags: Python;

Public
Thumbnail 1

How to retrieve the minimum and maximum dates (i.e., start and end dates) from a datetime column in a pandas dataframe ?

by Benjamin Marchant
Edited: Jan. 6, 2024, 2:44 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to generate a random date within a specified range using Python ?

by Benjamin Marchant
Edited: Jan. 5, 2024, 3:24 a.m.
Tags: Python;

Public
Thumbnail 1

How to efficiently apply a function element-wise to multiple NumPy arrays ?

by Benjamin Marchant
Edited: Jan. 2, 2024, 3:45 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to efficiently obtain statistical measures (such as mean, standard deviation, count, etc.) for a specific column in a pandas dataframe using describe() ?

by Benjamin Marchant
Edited: Jan. 1, 2024, 10:29 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to generate a random integer using python ?

by Benjamin Marchant
Edited: Jan. 1, 2024, 6:19 p.m.
Tags: Python; Random;

Public
Thumbnail 1

How to unzip all files within a folder using python ?

by Benjamin Marchant
Edited: Jan. 1, 2024, 2:47 p.m.
Tags: Python;

Public
Thumbnail 1

How to convert a MultiIndex column into a single index column in a pandas dataframe?

by Benjamin Marchant
Edited: Dec. 30, 2023, 3:21 a.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to iterate (loop) over a Pandas dataframe that has been grouped using the groupby function?

by Benjamin Marchant
Edited: Dec. 29, 2023, 4:02 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to save and compress a numpy array efficiently ?

by Benjamin Marchant
Edited: Dec. 28, 2023, 8:50 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to download NOAA products using the NOAA class platform (example with VIIRS Active Fire) ?

by Benjamin Marchant
Edited: Dec. 25, 2023, 4:41 p.m.
Tags: NOAA; Active Fire; CLASS WebSite;

Public
Thumbnail 1

How to use Python to query and obtain answers from ChatGPT ?

by Benjamin Marchant
Edited: Dec. 24, 2023, 9:11 p.m.
Tags: Python; ChatGPT;

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