After some rather intensive courses, one of which was all about coding in Python - using Jupyter notebooks, I kind of got hooked. I continued doing some Python coding because it was, well. fun! If that makes me a geek, so be it. In the end, I wrote several little Python functions that did a lot of what my professor had been asking us to do during the semester, but did it in a much easier way (at least for anyone else who is using the functions). I have uploaded a couple of them here. If you find them at all useful, feel free to credit me. On the other hand, if you find they need reworking, I am also happy to hear about it. Contact me if you have suggestions or problems or want to talk about Pythonic issues!
CAVEAT: I hope I have gotten all this correct, but doubt it. Feel free to use and abuse...
The following code was tested on a Jupyter notebook (both Anaconda and VS Code versions), and this cleansed version of the Titanic dataset which needs to be uncompressed.
Now for the code ...
NOTE on Code: in order to download the code:
- Navigate to this page and the code links on it
- Left click on the link you wish to download
- Click the down arrow icon at the top right of the resulting page
- If you let your mouse hover over the down arrow icon, it should say "download raw file"
- Once you have clicked the download button, the file should be automatically downloaded onto your computer - check your downloads folder
- ALTERNATELY, skip steps 2 - 5 and right-click on the file, choose "Save link as", find the file in your downloads folder
- The Train, fit and evaluate different models script made into a Windows executable file - note that this is a link to google drive since the file is humongous!
- Fill a PDF form - note that this is a link to google drive since the file is humongous!
- File watcher executable - an excellent script to watch any changes to a given directory
- Regression Plotter I also have an MSI for this but the file is over 25gb so this is a link.
- Python Functions Windows installer (MSI) - link to google drive file NOTE: this file includes downloads for all other free standing executables, like the file watcher or form filler. Be patient during download. After clicking the download anyway button, it seems to take some time. For a file that includes all files in the download, use this link.
- Train, fit and evaluate different models - most updated - requests dataset path, dataset separator, and target (choice of available features)
- Run other Jupyter notebooks and put resultant timings in Python dictionary
- File watcher - a script to watch any changes to a given directory
- Plotly graphs of interest
- Different table types
- Python version of train, fit, and evaluate function, as above but you can just use the import command and the name of the file
- Fill a PDF form
- File watcher - a script to watch any changes to a given directory
- Functions used in my OMDS homeworks
- Basic code to time your jupyter notebooks
- Regression plot function
- Create a scatter plot of the cleansed titanic dataset linked to above
- Python version of the run other notebook and store timings file
- Function to read a file into python/jupyter notebook environment
- Read file and create a correlation matrix and a correlation plot
- Read file like above, but use an internal function call
- Plot the survival rate for passengers on the titanic
- Vendor Manager repository
Below code generated by Claude.ai with help