MOONBOOKS
  • Notes
  • Tutorials
  • Courses
  • Videos
  • Datasets
  • Version
    • English
    • French
  • Sign-Up
Join-Us
Notes Articles Jupyter PDF
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 use Python to query and obtain answers from ChatGPT ?

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

Public
Thumbnail 1

How to clone an existing conda environment in python ?

by Benjamin Marchant
Edited: Dec. 22, 2023, 1:44 p.m.
Tags: Python; Conda;

Public
Thumbnail 1

How to stack two numpy arrays in python ?

by Benjamin Marchant
Edited: Dec. 11, 2023, 2:10 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to only keep the maximum value of two numpy arrays ?

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

Public
Thumbnail 1

How to find the most frequent value or mode in a numpy array ?

by Benjamin Marchant
Edited: Dec. 6, 2023, 3:38 a.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to fix the Geopandas error 'GeoSeries' or 'GeoDataFrame' object has no attribute 'geoms' ?

by Benjamin Marchant
Edited: Dec. 5, 2023, 4:39 p.m.
Tags: Python; Geopandas; DataFrame;

Public
Thumbnail 1

How to calculate the element-wise mean across multiple numpy arrays in Python ?

by Benjamin Marchant
Edited: Dec. 2, 2023, 2:16 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to filter a geopandas dataframe for points that fall within a specified polygon ?

by Benjamin Marchant
Edited: Nov. 19, 2023, 3:58 a.m.
Tags: Python; Geopandas; DataFrame;

Public
Thumbnail 1

How to find the intersection between two geographic areas in python using shapely and cartopy ?

by Benjamin Marchant
Edited: Nov. 16, 2023, 4:18 p.m.
Tags: Python; Cartopy; Shapely;

Public
Thumbnail 1

How to extract the intersection between two polygons in Python using Shapely ?

by Benjamin Marchant
Edited: Nov. 15, 2023, 9:50 p.m.
Tags: Python; Matplotlib; Shapely;

Public
Thumbnail 1

How to create and plot polygons in python using shapely and matplotlib ?

by Benjamin Marchant
Edited: Nov. 15, 2023, 8:19 p.m.
Tags: Python; Matplotlib; Shapely;

Public
Thumbnail 1

How to select rows that a contain specific word or text with Pandas ?

by Benjamin Marchant
Edited: Nov. 14, 2023, 9:48 p.m.
Tags: Python; Pandas; Dataframe;

Public
Thumbnail 1

How to calculate the distance between two geographical points defined by latitudes and longitudes using Python?

by Benjamin Marchant
Edited: Nov. 14, 2023, 4:46 p.m.
Tags: Python;

Public
Thumbnail 1

How to plot a line between two points on a cartopy map ?

by Benjamin Marchant
Edited: Nov. 7, 2023, 5:11 p.m.
Tags: Python; Cartopy; Map;

Public
Thumbnail 1

How to zoom into a Specific Region on a Cartopy Global Map using Python ?

by Benjamin Marchant
Edited: Nov. 7, 2023, 12:10 a.m.
Tags: Python; Cartopy;

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