intro-to-python
intro-to-python copied to clipboard
An Introduction to Programming in Python
Some students have need for threading in their final project, so the repo should provide some notes about parallel processing, using the concurrent futures module. ### References Threads and Thread...
Next time, ask students to use this template repo, to avoid confusing fork relationships with the upstream repo. https://github.com/prof-rossetti/codebase-cleanup-template-2021 I think they need to first fork the template, then when...
Looks like there have been some changes to the gspread package API. https://gspread.readthedocs.io/en/latest/oauth2.html We should make sure the existing notes still work, and update them as necessary. ```py gc =...
Update for selenium 4.11: ```py import os from dotenv import load_dotenv from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.keys import Keys load_dotenv() # default path for homebrew-installed chromedriver...
Let's add some notes about using `ipywidgets` for user interface in colab notebooks. Reference: + https://ipywidgets.readthedocs.io/en/stable/ + https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20Basics.html Example: ```py import ipywidgets as widgets widgets.IntSlider() ``` ```py from IPython.display import...
We need some notes about category encoders package: Installation: ```sh pip install category_encoders ``` Resources: + https://contrib.scikit-learn.org/category_encoders/onehot.html ```py from category_encoders import OneHotEncoder, OrdinalEncoder onehot = OneHotEncoder(handle_unknown="error", use_cat_names=True, return_df=True, cols=["categorical_column_1", "categorical_column_2"]...
A handful of students are encountering an issue whereby they are developing a flask app locally, and when they make some new changes to the code and restart the local...