Introduction

Welcome to Moonbooks! We firmly hold the belief that knowledge should be shared freely and be accessible to everyone. Our dedication lies in dismantling obstacles to education by offering a platform where individuals, irrespective of their background or location, can easily reach high-quality learning resources. Come join us on our quest to render learning reachable and pleasurable for all.



English | French

Newest Articles

How to use Markdown and Pygments in Python to enhance the formatting of your content ?

Modified March 21, 2024, 2:45 p.m.
Tags Python; Pygments; Markdown;

How to use the Python module Pygments for code highlighting ?

Modified March 21, 2024, 1:54 p.m. | Edited March 21, 2024, 1:54 p.m.
Tags Python; Pygments;

How to convert an encoded markdown content back to HTML using python ?

Modified March 18, 2024, 8:08 p.m. | Edited March 18, 2024, 8:08 p.m.
Tags Python;

How to use python re to find all content between two HTML tags ?

Modified March 18, 2024, 3:13 p.m. | Edited March 18, 2024, 3:13 p.m.
Tags Python;

How to fix the pandas error: "A value is trying to be set on a copy of a slice from a DataFrame" ?

Modified March 18, 2024, 11:42 p.m. | Edited March 18, 2024, 11:42 p.m.
Tags Pandas;

How to retrieve polygon coordinates from a GeoPandas DataFrame ?

Modified Feb. 20, 2024, 5:58 p.m.
Tags Geopandas;

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

Modified Feb. 19, 2024, 3:12 a.m.
Tags Python; Scipy;

How to extract coordinates from a Shapely polygon in python ?

Modified Feb. 21, 2024, 9:23 p.m. | Edited Feb. 21, 2024, 9:23 p.m.
Tags Python; Shapely;

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

Modified Feb. 16, 2024, 1:13 p.m.
Tags Python; Geopandas;

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

Modified Feb. 12, 2024, 8:12 p.m.
Tags Python; Bokeh;

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

Modified Feb. 12, 2024, 3:37 p.m. | Edited Feb. 12, 2024, 3:37 p.m.
Tags Python; Geopandas;

How to create a GeoDataFrame from a Pandas DataFrame ?

Modified Feb. 11, 2024, 2:51 p.m.
Tags Python; Geopandas;

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

Modified Feb. 10, 2024, 3:25 a.m.
Tags Python;

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

Modified Feb. 9, 2024, 7:45 p.m.
Tags Python; Bokeh;

How to convert a Jupyter notebook into a Python script ?

Modified Feb. 6, 2024, 3:55 a.m.
Tags Python;

How to remove unused modules in a Python script ?

Modified Feb. 5, 2024, 11:15 p.m.
Tags Python;

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

Modified Feb. 6, 2024, 3:57 p.m. | Edited Feb. 6, 2024, 3:57 p.m.
Tags Python; Bokeh;

How to remove grid lines from a Bokeh plot ?

Modified Feb. 2, 2024, 6:13 p.m. | Edited Feb. 2, 2024, 6:13 p.m.
Tags Python; Bokeh;

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

Modified Feb. 2, 2024, 10:37 p.m. | Edited Feb. 2, 2024, 10:37 p.m.
Tags Python; Bokeh;

How to shift elements in a numpy array ?

Modified Feb. 2, 2024, 12:39 a.m. | Edited Feb. 2, 2024, 12:39 a.m.
Tags Python; Numpy;

Top articles by views

How to create a list of numbers in python ?

Modified March 9, 2018, 7:16 p.m.

How to convert a float array to an integer array in python ?

Modified March 22, 2019, 3:31 p.m.

How to create a scatter plot with several colors in matplotlib ?

Modified April 5, 2019, 2:29 a.m.

How to replace some elements of a matrix using numpy in python ?

Modified Oct. 31, 2019, 7:12 p.m.

How to change imshow axis values (labels) in matplotlib ?

Modified May 24, 2019, 6:12 p.m.

How to change the size of axis labels in matplotlib ?

Modified July 31, 2019, 6:46 p.m.

How to save a dictionary in a json file with python ?

Modified April 12, 2019, 6:01 p.m.

How to convert an image to grayscale using python ?

Modified Feb. 19, 2019, 12:51 a.m.

How to sum a list of numbers in python ?

Modified March 14, 2018, 7:03 p.m.

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

Modified March 27, 2019, 3:46 a.m.

How to create a list of random integers in python ?

Modified Jan. 30, 2019, 4:02 p.m.

How to overlay / superimpose two images using python and pillow ?

Modified April 16, 2019, 3:23 p.m.

How to increase the size of scatter points in matplotlib ?

Modified April 5, 2019, 2:58 p.m.

How to plot a circle in python using matplotlib ?

Modified June 18, 2019, 6:48 p.m.

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

Modified March 28, 2019, 1:48 a.m.

How to filter missing data (NAN or NULL values) in a pandas DataFrame ?

Modified Oct. 28, 2019, 2:35 p.m.
Tags Python; Pandas; DataFrame;

How to create a matrix of complex numbers in python using numpy ?

Modified Nov. 15, 2019, 9:07 p.m.

How to increase the size of axes labels on a seaborn heatmap in python ?

Modified May 9, 2020, 2:02 a.m.
Tags Python; Seaborn; Heatmap;

How to create and initialize a matrix in python using numpy ?

Modified Oct. 11, 2019, 2:52 p.m.

How to write a simple python code to find the intersection point between two straight lines ?

Modified June 21, 2019, 4:27 p.m.