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

How to Randomly Shuffle DataFrame Rows and Create Samples with Pandas ?

by Benjamin Marchant
Edited: Jan. 1, 2025, 11:17 a.m.
Tags: Python; Pandas; DataFrame;

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 downsample a matrix by averaging elements n*n with numpy in python ?

by Benjamin Marchant
Edited: June 20, 2023, 2:01 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to create a random sample using a reservoir with pandas in python ?

by Benjamin Marchant
Edited: Nov. 3, 2021, 1:46 a.m.
Tags: Python; Pandas; DataFrame; Big Data;

Public
Thumbnail 1

How to slice a dictionary (e.g create a sub-dictionary or sample) in python ?

by Benjamin Marchant
Edited: Aug. 7, 2021, 2:03 p.m.
Tags: Python; Dictionary; Slice; Sample;

Public
Thumbnail 1

How to shuffle randomly elements of a list in python ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 8:55 p.m.
Tags: Python; List; Random; Sample; shuffle;

Public
Thumbnail 1

How to shuffle randomly dictionary keys in python 3 ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 7:34 p.m.
Tags: Python; Dictionary; Random; Shuffle; Sample;

Public
Thumbnail 1

How to select randomly keys from a dictionary in python 3 ?

by Benjamin Marchant
Edited: Aug. 6, 2021, 6:59 p.m.
Tags: Python; Dictionary; Random; Sample;

Public
Thumbnail 1

How to downsample a matrix by keeping only one element every n*n blocks with numpy ?

by Benjamin Marchant
Edited: March 2, 2021, 2:56 p.m.
Tags: Python; Numpy;

Public
Thumbnail 1

How to upsample an array (matrix) by repeating elements using numpy in python ?

by Benjamin Marchant
Edited: Nov. 18, 2020, 2:38 p.m.
Tags: Python; Numpy;

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 homogenize with the latitude a MODIS-2B-CLDCLASS-lidar sample ?

by Benjamin Marchant
Edited: March 18, 2019, 7:50 p.m.

Public
Thumbnail 1

How to create (extract) a sample from an array in python ?

by Benjamin Marchant
Edited: March 8, 2019, 3:55 a.m.

Public
Thumbnail 1

How to calculate the mean and standard deviation of a sample in python ?

by Benjamin Marchant
Edited: Feb. 11, 2019, 2:41 a.m.

Public
Copyright © 2025 - All rights reserved Contact Us Terms & Conditions