• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • Conferences
  • Python Books
  • About
    • Privacy Policy
You are here: Home / Archives for Numpy Tips

Numpy Tips

Numpy’s random choice() function

December 31, 2022 by cmdlinetips

In this post we will learn how to use Numpy’s choice function. Numpy’s choice() function is a useful tool for selecting random items from a list or array. The basic syntax of choice() function Numpy’s random module is this Here, a is the list or array from which you want to select items, size is […]

Filed Under: Numpy Tips Tagged With: numpy choice() function

Difference between Numpy’s Permutation() and Shuffle() functions

December 30, 2022 by cmdlinetips

In this post, we will learn about the differences between Numpy’s permutation() function and shuffle() function with examples. Numpy offers a variety of functions to randomize or create random data. Numpy’s permutation() and shuffle() functions are two key functions that help randomize existing 1-D array or 2D-arrays. First, we will start with how to use […]

Filed Under: Numpy Tips Tagged With: Numpy's permutation() vs shuffle()

How to generate random numbers from Beta distribution in Numpy

December 30, 2022 by cmdlinetips

Shapes of Beta distribution and their parameters

In this tutorial, we will learn how to generate random numbers from Beta distribution in Python using Numpy. We will use Numpy’s Random Generator object with. random module’s beta() function to generate random numbers from beta distribution. We will start with learning the basics of Beta distribution. Then we will learn how to generate a […]

Filed Under: Numpy Tips Tagged With: Numpy beta() function

How to generate random numbers from binomial distribution in Numpy

December 30, 2022 by cmdlinetips

In this post we will learn the basics of generating random numbers from binomial distribution in Python with Numpy. We will use Numpy’s random module’s binomial() function to generatee random numbers with multiple examples. What is Binomial Distribution The binomial distribution is a probability distribution that describes the outcomes of a series of independent trials […]

Filed Under: Numpy Tips Tagged With: Numpy binom()

7 tips to get Statistical Summaries in Numpy

December 30, 2022 by cmdlinetips

In this post we will learn about 5 handy statistical summary functions in Numpy. Numpy offers a variety of statistical summary functions to help analyse understand data. Numpy’s summary functions allow you to calculate, quickly using vectorized operations. In this post we will learn how to use some of the most commonly used statistical summary […]

Filed Under: Numpy Tips Tagged With: Numpy stat summary

  • Page 1
  • Page 2
  • Page 3
  • Interim pages omitted …
  • Page 5
  • Go to Next Page »

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version