• 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

5 Examples Using Dict Comprehension in Python

January 23, 2018 by cmdlinetips

List Comprehension is a handy and faster way to create lists in Python in just a single line of code. It helps us write easy to read for loops in a single line. In Python, dictionary is a data structure to store data such that each element of the stored data is associated with a […]

Filed Under: dict comprehension, Dictionary comprehension, Python Tips Tagged With: dict comprehension, Dictionary comprehension, List Comprehension, Python Tips

How to Load a Massive File as small chunks in Pandas?

January 22, 2018 by cmdlinetips

How to load a big csv file in pandas in smaller chunks

The longer you work in data science, the higher the chance that you might have to work with a really big file with thousands or millions of lines. Trying to load all the data at once in memory will not work as you will end up using all of your RAM and crash your computer. […]

Filed Under: Pandas DataFrame, Python, Python Tips, read_csv in Pandas Tagged With: load a big file in chunks, pandas chunksize, Pandas Dataframe, Python Tips

How To Read a CSV File as Pandas Data Frame?

January 21, 2018 by cmdlinetips

Pandas is one of the popular Python package for manipulating data frames. Pandas is built on top of NumPy and thus it makes data manipulation fast and easy. One of the most common things one might do in data science/data analysis is to load or read in csv file. Here we see 7 examples to […]

Filed Under: Pandas DataFrame, Python, Python Tips, read_csv in Pandas Tagged With: Pandas Data Frame, Pandas read_csv, Python, Python Tips, read_csv in Pandas

How to Use Lambda Functions in Python?

January 21, 2018 by cmdlinetips

Python lets you create a function on the go, but without really assigning a name to the function. These “anonymous” functions are called “Lambda Functions”. One typically writes a lambda function on the fly, when one wants to write a function for one-time use. Lambda Functions come handy in a variety of situations and are […]

Filed Under: filter in Python, Lambda Function, Python, Python Tips Tagged With: filter in Python, Lambda Functions, map, Python, Python Tips, reduce

12 Basic Commands with NumPy Array

January 14, 2018 by cmdlinetips

NumPy (pronounced as Num-pee or Num-pai) is one of the important python packages (other being SciPy) for scientific computing. NumPy offers fast and flexible data structures for multi-dimensional arrays and matrices with numerous mathematical functions/operations associated with it. Core data structure in NumPy is “ndarray”, short for n-dimesional array for storing numeric values. Let us […]

Filed Under: Basic Numpy, NumPy, NumPy Basics, Python, Python Tips Tagged With: Basic NumPy, NumPy, Python Tips

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 29
  • Page 30
  • Page 31
  • Page 32
  • Page 33
  • 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