Skip to content

wrighters.io

Thoughts on python, data science, and related tools.

  • About
  • Articles
  • Privacy Policy

Tag: performance

Profiling Python code with line_profiler

February 28, 2021April 20, 2021 ~ Matt Wright ~ Leave a comment

Once we have debugged, working, readable (and hopefully testable) code, it may become important to examine it more closely and try to improve the code's performance. Before we can make any progress in determining if our changes are an improvement, we need to measure the current performance and see where it is spending its time. … Continue reading Profiling Python code with line_profiler

Profiling Python with cProfile, and a speedup tip

February 18, 2021April 20, 2021 ~ Matt Wright ~ Leave a comment

We would love for our Python programs to run as fast as possible, but figuring out how to speed things up requires gathering information about the current state of our code and knowing techniques to speed things up. First and foremost, we need to know where our program is spending its time, and what is … Continue reading Profiling Python with cProfile, and a speedup tip

Top Posts

  • Using requests and BeautifulSoup in Python to scrape data
  • How to view all your variables in a Jupyter notebook
  • Parameterizing and automating Jupyter notebooks with papermill
  • How to use ipywidgets to make your Jupyter notebook interactive
  • Indexing time series data in pandas

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.
Proudly powered by WordPress ~ Theme: Penscratch 2 by WordPress.com.