• 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

How To Specify Colors to Boxplots in Seaborn?

November 19, 2018 by cmdlinetips

Boxplots with Specific Colors

Boxplots with actual data points are one of the best ways to visualize the distribution of multiple variables at the same time. Creating a beautiful plot with Boxplots in Python Pandas is very easy. In an earlier post, we saw a good example of how to create publication quality boxplots with Pandas and Seaborn. If […]

Filed Under: Boxplot with Seaborn, Python Boxplot, Python Tips, Seaborn Boxplot, Specify Colors in Boxplot Tagged With: Python Boxplot, Seaborn Boxplot, Specify Colors in Boxplot

How To Collapse Multiple Text Columns in Dataframe Using Tidyverse?

November 16, 2018 by cmdlinetips

Often you may have a data frame, where multiple columns are related and you may want to combine those related columns into a single column. In an earlier post, we saw how we can collapse a numerical data frame with related columns using Python. In this post, we consider the problem of collapsing or combining […]

Filed Under: Collapse columns in tidyverse, R Tips Tagged With: collapse columns in tidyverse, combine text columns

How to Split a Single Column in Pandas into Multiple Columns

November 10, 2018 by cmdlinetips

Split a Text Column in Pandas

Often you may have a column in your pandas data frame and you may want to split the column and make it into two columns in the data frame. For example, one of the columns in your data frame is full name and you may want to split into first name and last name (like […]

Filed Under: Pandas DataFrame, Python, Split a Text Column in Pandas Tagged With: Python Tips, Split a Text Column in Pandas

String Manipulations in Pandas

November 4, 2018 by cmdlinetips

Python is known for its ability to manipulate strings. Pandas extends Python’s ability to do string manipulations on a data frame by offering a suit of most common string operations that are vectorized and are great for cleaning real world datasets. Let us some simple examples of string manipulations in Pandas Let us use gapminder […]

Filed Under: Pandas String Manipulation, Python Tagged With: Pandas String Manipulation, Python Tips

How to Change Type for One or More Columns in Pandas Dataframe?

September 28, 2018 by cmdlinetips

Sometimes when you create a data frame, some of the columns may be of mixed type. And you might see warning like this DtypeWarning: Columns (0) have mixed types. Specify dtype option on import or set low_memory=False. We get this error when Pandas tries to guess the type for each element of a column. For […]

Filed Under: Change data types of columns, Pandas 101, Pandas data type, Python Tips Tagged With: change column type in Pandas, Change data types of columns, Pandas Dataframe

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 48
  • Page 49
  • Page 50
  • Page 51
  • Page 52
  • Interim pages omitted …
  • Page 74
  • 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