Skip to content

wrighters.io

Thoughts on python, data science, and related tools.

  • About
  • Privacy Policy

Month: January 2021

Selection in pandas using query

January 26, 2021January 26, 2021 ~ Matt Wright ~ 2 Comments

The query method in pandas DataFrames provides some flexibility in code, and potential speedups using numexpr.

Selecting in Pandas using where and mask

January 21, 2021January 21, 2021 ~ Matt Wright ~ Leave a comment

This is the fifth post in a series on indexing and selecting in pandas. If you are jumping in the middle and want to get caught up, here's what has been discussed so far: Basic indexing, selecting by label and locationSlicing in pandasSelecting by boolean indexingSelecting by callable Once the basics were covered in the … Continue reading Selecting in Pandas using where and mask

Indexing and Selecting in Pandas by Callable

January 11, 2021January 11, 2021 ~ Matt Wright ~ 2 Comments

In pandas, you can use callables where indexers are accepted. It turns out that can be handy for a pretty common use case.

Boolean Indexing in Pandas

January 4, 2021January 6, 2021 ~ Matt Wright ~ Leave a comment

This is the third post in the series on indexing and selecting data in pandas. If you haven't read the others yet, see the first post that covers the basics of selecting based on index or relative numerical indexing, and the second post, that talks about slicing. In this post, I'm going to talk about boolean … Continue reading Boolean Indexing in Pandas

Pages

  • About
  • Privacy Policy

Categories

  • Finance
  • Python
  • Software

Recent Posts

  • Selection in pandas using query
  • Selecting in Pandas using where and mask
  • Indexing and Selecting in Pandas by Callable
  • Boolean Indexing in Pandas
  • Indexing and Selecting in Pandas – slicing

Archives

  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
Proudly powered by WordPress ~ Theme: Penscratch 2 by WordPress.com.