profile-image
Benjamin H.G. Marchant (Open Notebook)
How to generate random numbers from a gamma distribution with python ?

Modified March 23, 2023, 8:08 p.m.
Tags Python; Numpy; Scipy;
Language(s): en

How to find the most frequent value in a pandas DataFrame column ?

Modified March 22, 2023, 3 a.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to normalize each row of an array into percentages with numpy ?

Modified March 19, 2023, 5:25 p.m. | Edited March 19, 2023, 5:25 p.m.
Tags Python; Numpy; Normalization;
Language(s): en

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

Modified March 16, 2023, 6 p.m.
Tags Python; List;
Language(s): en

How to slice a multidimensional matrix on column values with numpy ?

Modified March 13, 2023, 7:10 p.m. | Edited March 13, 2023, 7:10 p.m.
Tags Python; Numpy;
Language(s): en

How to select rows that contain a substring in Pandas DataFrame ?

Modified March 9, 2023, 3:44 a.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to create a video using a list of images with python ?

Modified March 8, 2023, 11:32 p.m.
Tags Python;
Language(s): en

How to plot confidence bands with Matplotlib ?

Modified March 7, 2023, 10:58 p.m.
Tags Python; Matplotlib;
Language(s): en

How to create an HTML table using a pandas DataFrame ?

Modified March 13, 2023, 9:19 p.m. | Edited March 13, 2023, 9:19 p.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to calculate and plot a 2D kernel density estimation with python ?

Modified March 3, 2023, 3:52 p.m. | Edited March 3, 2023, 3:52 p.m.
Tags Python; Matplotlib;
Language(s): en

How to read an image stored in a tiff file with python ?

Modified March 3, 2023, 1:19 a.m.
Tags Python;
Language(s): en

How to select values of a pandas series ?

Modified Feb. 27, 2023, 1 a.m.
Tags Python; Pandas; Dataframe; Series;
Language(s): en

How to calculate the fraction in percent of a categorical variable using Pandas GroupBy ?

Modified Feb. 25, 2023, 4:23 a.m.
Tags Python; Pandas; Dataframe; GroupBy;
Language(s): en

How to count the number of non-NaN values in every row of a pandas Dataframe ?

Modified Feb. 24, 2023, 4:08 a.m. | Edited Feb. 24, 2023, 4:08 a.m.
Tags Python; Numpy;
Language(s): en

How to get the size of a file in Python ?

Modified Feb. 21, 2023, 6:38 p.m.
Tags Python;
Language(s): en

How to always generate the same random numbers with numpy ?

Modified Feb. 21, 2023, 4:02 p.m.
Tags Python; Numpy;
Language(s): en

How to merge multiple Pandas DataFrames based on multiple columns ?

Modified Feb. 21, 2023, 1:22 a.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to check if a sentence start with a given word in python ?

Modified Feb. 20, 2023, 8:53 p.m.
Tags Python;
Language(s): en

How to apply a function across multiple columns in a pandas DataFrame and create several new ones ?

Modified Feb. 20, 2023, 12:43 a.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to get the absolute difference between two pandas dataframe columns ?

Modified Feb. 19, 2023, 5:10 p.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to generate a matrix of random floats with numpy ?

Modified Feb. 19, 2023, 2:30 p.m.
Tags Python; Numpy;
Language(s): en

How to round the values of a pandas DataFrame ?

Modified Feb. 19, 2023, 1:11 a.m. | Edited Feb. 19, 2023, 1:11 a.m.
Tags Python; Pandas; Dataframe;
Language(s): en

How to set 0 as the middle point in a matplotlib diverging colormap ?

Modified Feb. 18, 2023, 3:53 p.m. | Edited Feb. 18, 2023, 3:53 p.m.
Tags Python; Matplotlib; Colormap;
Language(s): en

How to install and run a basic C++ program on an Apple Mac ?

Modified Feb. 18, 2023, 3:54 p.m. | Edited Feb. 18, 2023, 3:54 p.m.
Tags C++; Apple Mac;
Language(s): en

Search: