• 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

How To Write Pandas GroupBy Function using Sparse Matrix?

March 16, 2019 by cmdlinetips

Pandas group-by function that helps perform the split-apply-combine pattern on data frames is bread and better for data wrangling in Python. Just came across a really cool blogpost titled “Group-by from scratch” by Jake Vanderplas, the author of Python Data Science Handbook. Jake implements multiple ways to implement group-by from scratch. It is a must […]

Filed Under: Pandas Group-By Tagged With: Group-By Using Sparse Matrix, Pandas Group-By

Happy Pi(e) Day: How To Make Pie Chart in R and Python? (but Never Make it)

March 14, 2019 by cmdlinetips

Make Pie chart with Pandas Python?

Happy Pi(e) Day! Pi Day is for celebrating the mathematical constant ? (pi) and it is on March 14 (3/14). It is also Albert Einstein’s birthday! Today is probably the only day you can think of making a Pie Chart. Pie Chart has been around for a while and notorious for eye-candy but misleading plots. […]

Filed Under: Pie Chart in Python, Pie Chart in R Tagged With: Pi Day, Pie Chart in Python, Pie Chart in R

Catplot Python Seaborn: One Function to Rule All Plots With Categorical Variables

March 9, 2019 by cmdlinetips

Catplot: Boxplot with jitter Seaborn

I just discovered catplot in Seaborn. Catplot is a relatively new addition to Seaborn that simplifies plotting that involves categorical variables. In Seaborn version v0.9.0 that came out in July 2018, changed the older factor plot to catplot to make it more consistent with terminology in pandas and in seaborn. The new catplot function provides […]

Filed Under: Python Tips, Seaborn Catplot, Stripplot Python Tagged With: boxen plot Python, Boxplot Python, pointplot Python, Seaborn Catplot, Stripplot Python

How To Make Grouped Boxplots in Python with Seaborn?

March 1, 2019 by cmdlinetips

Grouped boxplot seaborn

Boxplots are one of the most common ways to visualize data distributions from multiple groups. In Python, Seaborn potting library makes it easy to make boxplots and similar plots swarmplot and stripplot. Sometimes, your data might have multiple subgroups and you might want to visualize such data using grouped boxplots. Here, we will see examples […]

Filed Under: Grouped Boxplot in Python, Grouped boxplot with data points in Python, Python Boxplot, Python Tips Tagged With: Grouped Boxplot in Python, Grouped Boxplot Seaborn, Python Boxplot, Python Tips

How To Visualize Sparse Matrix in Python?

February 28, 2019 by cmdlinetips

Visualizing Sparse Diagonal Matrix

When you work with sparse matrix data structure with SciPy in Python, sometimes you might want to visualize the sparse matrix. A quick visualization can reveal the pattern in the sparse matrix and can tell how “sparse” the matrix is. And it is a great sanity check. One way to visualize sparse matrix is to […]

Filed Under: Spy to visualize sparse matrix, Visualizing Sparse Matrix Tagged With: Sparse Matrix in SciPy, Spy to Visualize Sparse Matrix, Visualizing Sparse Matrix

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • 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