Skip to content

wrighters.io

  • About
  • Articles
    • All Articles
  • Home
  • Privacy Policy
wrighters.io
  • About
  • Articles
    • All Articles
  • Home
  • Privacy Policy

Parameterizing and automating Jupyter notebooks with papermill

Leave a Comment / Python / By Matt Wright

Have you ever created a Jupyter notebook and wished you could generate the notebook with a different set of parameters? If so, you’ve probably done at least one of the following: Edited the variables in a cell and reran the notebook, saving off a copy as needed Saved a copy of the notebook and maybe …

Parameterizing and automating Jupyter notebooks with papermill Read More »

Indexing time series data in pandas

Leave a Comment / Pandas, Python / By Matt Wright

Indexing time series data in pandas is similar to other types, but there are a number of convenient functions unique to time series.

How to iterate over DataFrame rows (and should you?)

4 Comments / Pandas, Python / By Matt Wright

One of the most searched for (and discussed) questions about pandas is how to iterate over rows in a DataFrame. Often this question comes up right away for new users who have loaded some data into a DataFrame and now want to do something useful with it. The natural way for most programmers to think …

How to iterate over DataFrame rows (and should you?) Read More »

4 ways to run Jupyter notebooks

Leave a Comment / Python / By Matt Wright

Jupyter notebooks are a popular way to share data and code, and there are multiple ways to run and edit notebooks.

How to use ipywidgets to make your Jupyter notebook interactive

5 Comments / Python / By Matt Wright

Jupyter widgets can make notebooks be more interactive and make data exploration much easier, especially for end users who are not coders.

Profiling Python code with memory_profiler

Leave a Comment / Profiling, Python / By Matt Wright

When your Python program uses more memory than expected, you can use memory_profiler to find out where memory is allocated.

How to view all your variables in a Jupyter notebook

1 Comment / Python / By Matt Wright

Jupyter notebooks can easily have hidden state. Use these methods to see all the variables that exist in your Jupyter notebooks.

Using autoreload to speed up IPython and Jupyter work

Leave a Comment / Python / By Matt Wright

Using the %autoreload magic in IPython or Jupyter can help you continue working without restarting your session after making local changes.

Unit testing Python code in Jupyter notebooks

Leave a Comment / Python / By Matt Wright

It is possible to unit test Python code that lives in a Jupyter notebook. This article looks at three reasonable choices.

Profiling Python code with py-spy

Leave a Comment / Profiling, Python / By Matt Wright

You can use py-spy to profile already running Python code without restarting your process or modifying the source code.

Posts navigation
← Previous Page 1 2 3 … 5 Next Page →

Top Posts

  • How to view all your variables in a Jupyter notebook
  • Indexing time series data in pandas
  • Parameterizing and automating Jupyter notebooks with papermill
  • How to use ipywidgets to make your Jupyter notebook interactive
  • Using autoreload to speed up IPython and Jupyter work

free pandas e-book

Master the basics of indexing and selecting data in pandas with my free e-book.

Invalid email address
I promise not to spam you, and you can unsubscribe at any time.
Thanks for subscribing! Check your email for details on getting the cheatsheet and Jupyter notebooks.

Copyright © 2022 wrighters.io