• 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 Python

Python

How to convert row names to a column in Pandas

August 4, 2024 by cmdlinetips

In this tutoriual, we will learn how to convert the row name or row index name in a Pandas dataframe to a column. We will use Pandas’ reset_index() function to convert the index with name to a column. Let us load Pandas. Let us create a small dataframe in Pandas with rown index names. Our […]

Filed Under: Pandas 101, Pandas rename_axis, Pandas reset_index, Python Tips Tagged With: Convert row names to a column in Pandas

How to resize an image with PyTorch

February 20, 2024 by cmdlinetips

Displaying an image stored tensor object with Python

In this post, we will learn how to resize an image using PyTorch. PyTorch offers a numerous useful functions to manipulate or transform images. With PyTorch’s reSize() function, we can resize images. We will see a simple example of resizing a single image using Pytorch’s torchvision v2. First, let us load Numpy and Matplotlib. Let […]

Filed Under: Pytorch, Pytorch resize Tagged With: Pytorch resize image

Fashion-MNIST data from PyTorch

February 18, 2024 by cmdlinetips

Visualizing Fashion MNIST data images

In this short tutorial we will learn how to get access to Fashion-MNIST dataset. Fashion-MNIST is one of the image datasets useful for learning and training Deep Learning algorithms in action. PyTorch’s torchvision module makes it easy access Fashion-MNIST dataset. Fashion-MNIST dataset is from Zalando’s article images and it contains a training set of 60,000 […]

Filed Under: Python, Python Tips, PyTorch Tagged With: Fashion-MNIST dataset in PyTorch

Pandas case_when() with multiple examples

February 12, 2024 by cmdlinetips

The newest Pandas release Pandas 2.2.0 has one of the most useful functions case_when() available on a Pandas Series object. Often you might want to create a new variable from an existing variable using multiple conditions. For a simple binary condition we can use Pandas’ where() function. With the new case_when() function we can apply […]

Filed Under: Pandas 101, Python, Python Tips Tagged With: Pandas case_when()

An Introduction to Statistical Learning: with Applications in Python Is Here

October 10, 2023 by cmdlinetips

An Introduction to Statistical Learning: with Applications in Python

An Introduction to Statistical Learning in R ISLR, one of the best books to learn statistical learning, has a cousin now, Statistical Learning in Python. An Introduction to Statistical Learning in Python by Gareth James, Daniela Witten, Trevor Hastie, Robert Tibshirani, and Jonathan Taylor has been out recently. And just like the ISL in R, […]

Filed Under: An Introduction to Statistical Learning: with Applications in Python, Book Review, Python Tips Tagged With: Imputing Missing Data with SVD

  • Page 1
  • Page 2
  • Page 3
  • 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 © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version