• 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 Split A Column or Column Names in Pandas and Get Part of it?

June 15, 2018 by cmdlinetips

Often you may want to create a new variable either from column names of a pandas data frame or from one of the columns of the data frame. Just like Python, Pandas has great string manipulation abilities that lets you manipulate strings easily. Let us see an example of using Pandas to manipulate column names […]

Filed Under: Pandas DataFrame, Python Tips Tagged With: get part of column in Pandas, Pandas Data Frame, Split Column Names of Pandas Dataframe

Plotnine: A Python library to use ggplot2 in Python

May 2, 2018 by cmdlinetips

Scatter plot with plotnine in Python using ggplot

Python’s visualization options can be difficult to grasp, if you recently moved to use Python after using R for a while. There are a lot of options. Multiple options for visualizations are good. Especially, mature matplotlib, Seaborn, Bokeh and the new library like Altair are great to learn and use for data visualization in Python. […]

Filed Under: ggplot2 in python, Plotnine python library, Python Tagged With: Data Visualization in Python, ggplot2 in Python, plotnine python library

How To Loop Through Lines in a File in Bash?

April 26, 2018 by cmdlinetips

Often you may want to loop through each line from a file and do something to each line. Yes, you can use Python or other programming language to do that. However, a simple bash script can be extremely useful in looping through lines in a file. Here is how to loop through lines in a […]

Filed Under: Bash Tips, Linux Tips Tagged With: Linux Tips, loop through a file in Bash

f-string in Python 3.6 for formatting strings

April 23, 2018 by cmdlinetips

How to format string with f-strings in Python

If you are new to Python 3, learning to use f-string, Python’s relatively new string formatting is a lot of fun. f-string, a short name for “formatted string literal”, is a string literal that is prefixed with letter ‘f’ or ‘F’ and is available from Python version 3.6 There are multiple options to format a […]

Filed Under: f-string in Python 3, Python, Python 3 Tagged With: f-string in Python 3, Python 3, string formatting in Python 3

An Introduction to Altair: A Python Visualization Library

April 16, 2018 by cmdlinetips

Altair: A Python Visualization Library

Altair is kind of the new kid in the data visualization block. Altair is declarative visualization library that uses grammar of interactive graphics, built on Vega and Vega-lite. Vega-Lite enables concise descriptions of visualizations as a set of encodings that map data fields to the properties of graphical marks. Altair API kind of works as […]

Filed Under: Altair, Altair Boxplot, Altair Histogram, Altair Scatter Plot, Altair: A Python Visualization Library Tagged With: Altair, Altair Boxplot, Altair Histogram, Altair Scatter Plot, Data Visualization with Altair

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