• 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
  • About
    • Privacy Policy
You are here: Home / Archives for Python

Python

9 Basic Linear Algebra Operations with NumPy

June 27, 2019 by cmdlinetips

Linear algebra is one of the most important mathematical topics that is highly useful to do a good data science. Learning the basics of linear algebra adds a valuable tool set to your data science skill. Python’s NumPy has fast efficient functions for all standard linear albegra/matrix operations. Here we will see 9 important and […]

Filed Under: Linear Algebra with NumPy, numpy eye Tagged With: Linear Algebra with NumPy, numpy eye, numpy matrix inverse

3 Basic Commands to Manipulate NumPy 2d-arrays

June 14, 2019 by cmdlinetips

NumPy or Numerical Python is one of the packages in Python for all things computing with numerical values. Learning NumPy makes one’s life much easier to compute with multi-dimensional arrays and matrices. A huge collection of very useful mathematical functions available to operate on these arrays these arrays makes it one of the powerful environment […]

Filed Under: NumPy 2d-array, NumPy ravel, NumPy reshape, NumPy transpose Tagged With: NumPy 2d-array, NumPy ravel, NumPy reshape, NumPy transpose

How To Reshape Pandas Dataframe with melt and wide_to_long()?

June 8, 2019 by cmdlinetips

Pandas melt to reshape dataframe

Reshaping data frames into tidy format is probably one of the most frequent things you would do in data wrangling. In this post, we will learn how to use Pandas melt() function and wide_long_long() function to reshape Pandas dataframe in wide form to long tidy form. A data frame is tidy when it satisfies the […]

Filed Under: Pandas Melt, Pandas wide_to_long, Reshape pandas dataframe Tagged With: Pandas Melt, Pandas wide_to_long, Reshape Pandas Dataframe

Singular Value Decomposition (SVD) in Python

May 25, 2019 by cmdlinetips

SVD Scree Plot

Matrix decomposition by Singular Value Decomposition (SVD) is one of the widely used methods for dimensionality reduction. For example, Principal Component Analysis often uses SVD under the hood to compute principal components. In this post, we will work through an example of doing SVD in Python. We will use gapminder data in wide form to […]

Filed Under: Dimensionality Reduction, Singular Value Decomposition, SVD in Python, SVD with NumPy Tagged With: Dimensionality Reduction, Singular Value Decomposition in Python, SVD in NumPy, SVD in Python

How To Create a Column Using Condition on Another Column in Pandas?

May 19, 2019 by cmdlinetips

Often while cleaning data, one might want to create a new variable or column based on the values of another column using conditions. In this post we will see two different ways to create a column based on values of another column using conditional statements. First we will use NumPy’s little unknown function where to […]

Filed Under: NumPy where, Pandas apply, Pandas New Column Tagged With: NumPy where, Pandas New Column, Pandas New Column Conditional

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Interim pages omitted …
  • Page 35
  • 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 © 2026 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version