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

How to numerically compute the inverse function in python using scipy ?

by Benjamin Marchant
Edited: July 13, 2020, 5:58 p.m.
Tags: Python; Scipy;

Public
Thumbnail 1

How to calculate a mean from a dataframe column with pandas in python ?

by Benjamin Marchant
Edited: June 18, 2020, 10:32 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to replace NaN values in a pandas dataframe ?

by Benjamin Marchant
Edited: June 17, 2020, 11:57 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to convert a dataframe column of date of birth DOB to column of age with pandas in python ?

by Benjamin Marchant
Edited: June 17, 2020, 4:45 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to get the age from a date of birth (DOB) in python ?

by Benjamin Marchant
Edited: June 17, 2020, 2:42 a.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to remove dataframe rows where a condition is true with pandas in python ?

by Benjamin Marchant
Edited: June 16, 2020, 2:11 a.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to remove (filter) the duplicates in a python list ?

by Benjamin Marchant
Edited: June 1, 2020, 2:04 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to check if an element is in a list or not in python ?

by Benjamin Marchant
Edited: June 1, 2020, 1:36 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to get a list of names (variables) of data stored in a HDF5 file using pandas in python ?

by Benjamin Marchant
Edited: May 27, 2020, 2:41 a.m.
Tags: Python; Pandas; HDF5;

Public
Thumbnail 1

How to find in a list the elements starting by *** in python ?

by Benjamin Marchant
Edited: May 26, 2020, 10:50 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to find the smallest positive value in a list in python

by Benjamin Marchant
Edited: May 26, 2020, 8:02 p.m.
Tags: Python; List;

Public
Thumbnail 1

How to find the difference in minutes between two dates in python ?

by Benjamin Marchant
Edited: May 26, 2020, 7:36 p.m.
Tags: Python; Datetime;

Public
Thumbnail 1

How to select randomly (sample) the rows of a dataframe using pandas in python ?

by Benjamin Marchant
Edited: May 24, 2020, 7:36 p.m.
Tags: Python; Pandas;

Public
Thumbnail 1

How to edit a pandas dataframe column values where a condition is verified in python ?

by Benjamin Marchant
Edited: May 24, 2020, 7:27 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to select dataframe rows using a condition with pandas in python ?

by Benjamin Marchant
Edited: May 24, 2020, 7:13 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to select dataframe columns that start with *** using pandas in python ?

by Benjamin Marchant
Edited: May 24, 2020, 7:04 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to calculate and plot a cumulative distribution function with matplotlib in python ?

by Benjamin Marchant
Edited: May 10, 2020, 2:29 a.m.
Tags: Python; Statistics;

Public
Thumbnail 1

How to calculate a log-likelihood in python (example with a normal distribution) ?

by Benjamin Marchant
Edited: May 10, 2020, 2:11 a.m.
Tags: Python;

Public
Thumbnail 1

How to add text (units, %, etc) in a heatmap cell annotations using seaborn in python ?

by Benjamin Marchant
Edited: May 9, 2020, 9:21 p.m.
Tags: Python; Seaborn; Heatmap;

Public
Thumbnail 1

How to estimate the mean with a truncated dataset using python ?

by Benjamin Marchant
Edited: May 9, 2020, 2:54 p.m.

Public
Thumbnail 1

How to use a Gaussian mixture model (GMM) with sklearn in python ?

by Benjamin Marchant
Edited: May 9, 2020, 2:28 p.m.
Tags: Python; sklearn; Machine Learning;

Public
Thumbnail 1

How to add text on an image using pillow in python ?

by Benjamin Marchant
Edited: May 9, 2020, 2:24 a.m.
Tags: Python; Pillow;

Public
Thumbnail 1

How to increase the size of the cells text (annotations) of a seaborn heatmap in python ?

by Benjamin Marchant
Edited: May 9, 2020, 2:15 a.m.
Tags: Python; Seaborn; Heatmap;

Public
Thumbnail 1

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

by Benjamin Marchant
Edited: May 9, 2020, 2:02 a.m.
Tags: Python; Seaborn; Heatmap;

Public
Thumbnail 1

How to calculate a Gaussian density probability function at a given point in python ?

by Benjamin Marchant
Edited: April 30, 2020, 2:24 a.m.

Public
Thumbnail 1

How to multiply two complex numbers in python ?

by Benjamin Marchant
Edited: April 15, 2020, 8:47 p.m.
Tags: Python; cmath;

Public
Thumbnail 1

How to create an empty data frame with pandas and add new entries row by row ?

by Benjamin Marchant
Edited: April 15, 2020, 2:21 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to count the number of occurrences of elements in a pandas data frame column in python ?

by Benjamin Marchant
Edited: April 15, 2020, 3:05 a.m.

Public
Thumbnail 1

How to add a frame to a seaborn heatmap figure in python ?

by Benjamin Marchant
Edited: April 15, 2020, 2:29 a.m.

Public
Thumbnail 1

How to change the colorbar size of a seaborn heatmap figure in python ?

by Benjamin Marchant
Edited: April 15, 2020, 2:18 a.m.

Public
Thumbnail 1

How to check if a directory exists in python ?

by Benjamin Marchant
Edited: April 15, 2020, 2:06 a.m.

Public
Thumbnail 1

How to check if path to a file or a directory exists in python ?

by Benjamin Marchant
Edited: April 15, 2020, 12:03 a.m.
Tags: Python; Files;

Public
Thumbnail 1

How to generate a random number between 0 and 1 in python ?

by Benjamin Marchant
Edited: April 14, 2020, 10:30 p.m.
Tags: Python; Numpy; Random numbers;

Public
Thumbnail 1

How to divide by a number the elements of a pandas data frame column in python ?

by Benjamin Marchant
Edited: April 14, 2020, 10:24 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to subtract by a number the elements of a datafame column with pandas in python ?

by Benjamin Marchant
Edited: April 14, 2020, 10:21 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to multiply by a number the elements of a DataFrame column with pandas in python ?

by Benjamin Marchant
Edited: April 14, 2020, 10:03 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to add a constant number to a DataFrame column with pandas in python ?

by Benjamin Marchant
Edited: April 14, 2020, 9:53 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to merge / concatenate two DataFrames with pandas in python ?

by Benjamin Marchant
Edited: April 14, 2020, 9:41 p.m.
Tags: Python; Pandas; DataFrame;

Public
Thumbnail 1

How to solve a quadratic equation in python using numpy ?

by Benjamin Marchant
Edited: April 11, 2020, 8:41 p.m.
Tags: Python; Numpy; Maths;

Public
Thumbnail 1

How to get the number of columns in a pandas DataFrame in python ?

by Benjamin Marchant
Edited: April 11, 2020, 2:49 a.m.
Tags: Pandas; python;

Public
  • Prev
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
Copyright © 2026 - All rights reserved Contact Us Terms & Conditions