Ctrl-Z to the rescue. ‘nuf said.
Troubleshoot with `logging` instead of `print()`
Adding temporary print statements to troubleshoot Python code is quick and dirty. And messy. Incorporating logging into your code habit is a great alternative to relying on ad-hoc print statements that just need to get deleted later.
Save Google Colab notebook to HTML
Save a Google Colab notebook to another format, such as HTML or PDF.
GitHub too-big HTML preview
When HTML files on GitHub are too big to render, here’s a quick work-around.
Convert .py to .ipynb
Use p2j to convert Python source code to Jupyter Notebook.
GitHub repository basics
Quick reference for building a repository locally, pushing it to GitHub, and maintaining commits back and forth.
Udacity Data Analyst Nanodegree: Completed
Today I completed the Udacity Data Analyst Nanodegree (DAND) program. As with other Udacity Nanodegree programs, I enjoyed doing the projects most of all. DAND includes 8 projects. My attention was diverted for a couple of months in the middle of DAND because of my acceptance to and participation in the Udacity/Facebook PyTorch challenge. But … [Read More]
PyTorch Scholarship Challenge: I Won!
Today I was chosen as one of only 300 out of 10,000 students in the PyTorch Scholarship Challenge to be awarded a scholarship. This means I will now be starting in the 3-month Udacity Deep Learning Nanodegree program. This, along with still working the Data Analyst Nanodegree (DAND) program, will be keeping me very busy!
Create iterator
iter(object)
Plot scatterplot matrix
pd.plotting.scatter_matrix(df, figsize=(15,15));
Verify that 2 DataFrames’ columns are the same
(df1.dtypes == df2.dtypes).all()
Convert a column’s datatype
df[‘column’] = df[‘column’].astype(float) # bool, float, int, str