Python Pandas For Excel webinar on vBrownBag
Tags: python, excel, pandas, devops
Published: 2019-08-19 21:04:57

---
title: Python Pandas For Excel webinar on vBrownBag
published: true
tags: python,excel,pandas,devops,
cover_image: https://katiekodes.com/images/header-vbrownbag19-python-excel-20190821.png
canonical_url: https://katiekodes.com/python-pandas-excel-vbrownbag-devops/
---

Wednesday August 21, 2019, 8:30PM Eastern / 5:30PM Pacific -- I'm talking about using Python's Pandas module to edit Excel files (and other table-shaped data!) on Chris Williams's awesome "Python for DevOps" webinar series within the vBrownBag video podcast.

**[Register Here to get the link to participate live](https://register.gotowebinar.com/register/4381236442732324866)** 

{% user mistwire %}

Am I allowed to announce an upcoming speaking gig on Dev?  🤔  If it helps, this post will be the "where to find the slides & video & links" once it's done.  But for now I wanted to include the registration link!

Again:

* Wednesday August 21, 2019, 8:30PM Eastern / 5:30PM Pacific
* **[Register for the link](https://register.gotowebinar.com/register/4381236442732324866)** 
* _(Check your spam folder -- no matter how many times I flag it as "not spam," my email provider won't listen to me.)_

---

_Can’t make it? Don’t worry – you can catch up on YouTube within a week or two._

---
---
---

## Links

_(These will make a lot more sense after the webinar, of course...)_

### Environment Setup

- Step-by-step instructions:  [Install Python on your Windows machine](https://katiekodes.com/setup-python-windows-anaconda)
- Not ready to install Python?  [Start coding immediately at Repl.it](https://repl.it/languages/python3)

### Sample Data

- [A bunch of sales-ey-looking data as Excel files in various sizes from "E For Excel"](http://eforexcel.com/wp/downloads-18-sample-csv-files-data-sets-for-testing-sales/)
- My 3 go-to sample files I use in almost all tutorials:
	- [https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample1.csv](https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample1.csv)
	- [https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample2.csv](https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample2.csv)
	- [https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample3.csv](https://raw.githubusercontent.com/pypancsv/pypancsv/master/sample3.csv)

### Pandas Tutorials

- An anonymous StackAbuse contributor's [Beginner's Tutorial on the Pandas Python Library](https://stackabuse.com/beginners-tutorial-on-the-pandas-python-library/)
	- **Category:**  Explain Programming Like I'm Five _(but only the parts I care about)_
	- This is my favorite link if you hate trying to program without truly understanding your "data types."
	- It does a nice "explain it like I'm five" about Pandas "DataFrames" and Pandas "Series."
	- Ready for more?  Deepak "Daksh" K's [Pandas DataFrame: A lightweight Intro](https://towardsdatascience.com/pandas-dataframe-a-lightweight-intro-680e3a212b96) isn't quite as "ELI5" and feels a bit more "math-class"-ey, but I still like it.
- Bhavani Ravi's [Python Pandas -- Basics to Beyond](https://hackernoon.com/python-pandas-tutorial-92018da85a33)
	- **Category:**  Quick-start, Excel-specific
	- Warning:  this awesome article's CSS got messed up in the actual code samples sometime since it was published _(probably during the Medium -> HackerNoon migration)_.<br/>If you're on a desktop computer and comfortable using the developer tools built into your browser, right-click on the black-backgrounded code snippets, click "Inspect Element," and hand-edit the CSS from `line-height: 1.5;` to `line-height: 3;` in the `code[class*="language-"]` section of the CSS controlling the text.
- Chris Moffitt's [Common Excel Tasks Demonstrated in Pandas, part 2](http://pbpython.com/excel-pandas-comp.html) and [Common Excel Tasks Demonstrated in Pandas, part 2](http://pbpython.com/excel-pandas-comp-2.html)
	- **Category:**  Quick-start, Excel-specific
	- Chris's [Practical Business Python](https://pbpython.com/archives.html) site is a blog, so I recommend starting at the oldest posts in the archives and working your way up, since blogs tend to start basic and grow more advanced over time if you check out the rest of his material.
	- Chris also did a great episode, [Escaping Excel Hell with Python and Pandas](https://talkpython.fm/episodes/show/200/escaping-excel-hell-with-python-and-pandas), in February 2019 on the Talk Python To me podcast.  Full transcript available if you prefer over audio!
	- Chris himself has a [listicle of books on his site](https://pbpython.com/pages/resources.html) as well.
- Ankit Gandhi's [Replacing Excel with Python](https://towardsdatascience.com/replacing-excel-with-python-30aa060d35e)
	- **Category:**  Quick-start, Excel-specific
- Harish Garg's [Tutorial Using Excel with Python and Pandas](https://www.dataquest.io/blog/excel-and-pandas/)
	- **Category:**  Quick-start, Excel-specific
- Kevin Markham's [#PandasTricks](https://twitter.com/search?f=tweets&vertical=default&q=%23pandastricks%20from%3Ajustmarkham&src=typd&lang=en) "cool feature of the day" tweets.  Ongoing on Twitter -- just started summer 2019!
	- **Category:**  Short attention span
- Daniel Chen's [Pandas For Everyone](http://www.mypearsonstore.com/bookstore/pandas-for-everyone-python-data-analysis-9780134546933?xid=PSED) _([link 2](https://www.amazon.com/dp/0134546938/ref=cm_sw_r_cp_ep_dp_zQMSBbETZ0HK7))_
	- **Category:**  Full-on book
	- I haven't read this, but Kelly and Sean of the awesome Teaching Python podcast recommended it.  You can [see a big sample here](http://ptgmedia.pearsoncmg.com/images/9780134546933/samplepages/9780134546933_Sample.pdf) if you'd like to know what his writing style is like.
- Pete Houston's [Read CSV file using pandas](https://medium.com/@petehouston/read-csv-file-using-pandas-94288353dd34)
	- **Category:**  Feature tutorial
	- Mostly overkill about the `read_csv()` function if you've already played around, but I like that it covers handling ultra-ultra-large CSV files.
	- _(Tip:  When you're ready to write out your transformed "chunks" to one ultra-ultra-large CSV file, use the [`to_csv()` function in "append" mode](https://stackoverflow.com/questions/17530542/how-to-add-pandas-data-to-an-existing-csv-file).)_
	- Ultra-ultra-large is probably bigger than you think it is.  You're going to love how much faster things run just by using Python instead of Excel without worrying about this.
- Shane Lynn's [Using iloc, loc, & ix to select rows and columns in Pandas DataFrames](https://www.shanelynn.ie/select-pandas-dataframe-rows-and-columns-using-iloc-loc-and-ix/#iloc-selection)
	- **Category:**  Feature tutorial
	- If you hit a wall selecting cells of a Pandas DataFrame to edit, and someone suggests you use `.loc[]`, and you wonder what on earth that is, this article should help.
	- Also good for learning how to grab specific row numbers out of a spreadsheet.
- Kevin Markham's [Top 8 resources for learning data analysis with Pandas](https://www.dataschool.io/best-python-pandas-resources/) listicle
	- **Category:**  Link listicle
- My [Pandas Quick Examples](https://pypancsv.github.io/pypancsv/quickexamples/)
	- **Category:**  Hands-On Exercises
	- If you like to test the waters on a new skill with little "just jump in and try it" challenges, read this and try the handful of "test yourself!" exercises.
- My [Python for Excel 101 hands-on training](https://www.youtube.com/watch?v=rytPU9_NcGI) course video.
	- **Category:**  Explain Programming Like I'm Five _(but only the parts I care about)_
	- A 2.5-hour video is probably not the _fastest_ way to learn Pandas, but if you're **new to programming**, this might be useful.
	- We really dig into data types, DataFrames, Series, etc. -- but only as they pertain to getting you up and running with Pandas for spreadsheet editing.
	- It says it's _"for Salesforce administrators,"_ but that's just who my audience was that particular day.

### Pandas References

- [Official documentation of Pandas commands](https://pandas.pydata.org/pandas-docs/stable/reference/)
	- [Official documentation of Pandas commands available for every "Series"-typed expression](https://pandas.pydata.org/pandas-docs/stable/reference/series.html)
	- [Official documentation of Pandas commands available for "Series"-typed expressions that contain plaintext cells](https://pandas.pydata.org/pandas-docs/stable/reference/series.html#api-series-str)
	- [Official documentation of Pandas commands available for every "DataFrame"-typed expression](https://pandas.pydata.org/pandas-docs/stable/reference/frame.html)<br/>_(There are fewer useful ones than for Series, in my opinion ... how often do you really do a mass edit to an entire spreadsheet at once?)_
- Mark Graph's [Pandas DataFrame cheat sheet](https://drive.google.com/file/d/1oySbjLpT_PuDf3hN66-mzSjcPIThBOmC/view) _(PDF)_
	- A quick-reference guide to useful things you can do once you've loaded data into a Pandas "DataFrame" object
- Karlijn Willems's [Pandas Cheat Sheet for Data Science in Python](https://www.datacamp.com/community/blog/python-pandas-cheat-sheet)
	- From 2016, and Pandas is always introducing more concise commands for doing things, so if something looks annoying, see if it's been improved since then.
- Irv Lustig's [Data Wrangling With Pandas cheet sheet](https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf) _(PDF)_
- My [Python and Pandas CSV Processing Operations cheat sheet](https://pypancsv.github.io/pypancsv/commonoperations/)
	- Python & Pandas documentation can be cryptic for new programmers to read _(e.g. not familiar with reading "function signatures").
	- I had this crazy idea that I coud somehow "improve" upon it for beginners by describing Python/Pandas inputs to functions & operations as "put something here" placeholders like `°°°` or `°°°1°°°` & `°°°2°°°`.
	- I'm not sure it really came out like I meant it to, but if it helps you visualize the way to put "expressions" together as you get started ... yay!

### General-Purpose Python Tutorials & References

- Jessica Garson's [Resources for Learning Python](https://dev.to/jessicagarson/resources-for-learning-python-hd6) link listicle
	- Be sure to check out the comments for more great links
- Chris Albon's ["How to do X with Python" cheat sheets](https://chrisalbon.com/#python)

{% link https://dev.to/jessicagarson/resources-for-learning-python-hd6 %}
	
### Misc

- Julia Evan's [Asking Good Questions](https://jvns.ca/blog/good-questions/) -- a great way to get good help on StackOverflow!
- [A Reddit argument about whether sysadmins should abandon command-line tools for Python](https://old.reddit.com/r/sysadmin/comments/1b1d0j/using_both_bash_and_python/)