Skip to content

wrighters.io

Thoughts on python, data science, and related tools.

  • About
  • Articles
  • Privacy Policy

Month: October 2019

A pandas.DataFrame.apply example

October 1, 2019April 14, 2021 ~ Matt Wright ~ Leave a comment

I recently saw a question about pandas.DataFrame.apply and realized that when I first started using Pandas I would often attempt to solve problems with apply when a vectorized solution was what I should have been using instead. Let's say that you have an existing function to calculate the present value of an investment that takes … Continue reading A pandas.DataFrame.apply example

Pages

  • About
  • Articles
  • Privacy Policy

Categories

  • Finance
  • Pandas
  • Profiling
  • Python
  • Software

Recent Posts

  • How to view all your variables in a Jupyter notebook
  • Using autoreload to speed up IPython and Jupyter work
  • Unit testing Python code in Jupyter notebooks
  • Profiling Python code with py-spy
  • How to remove a column from a DataFrame, with some extra detail
Proudly powered by WordPress ~ Theme: Penscratch 2 by WordPress.com.