These notebooks contain MySQL and Pandas code equivalents. Pandas uses the SQLAlchemy module to connect to MySQL databases and perform database operations.
These MySQL codes are mainly taken from mysqltutorial.org with minor modifications for easier comparison with Pandas codes.
I also provided some tips for configuring MySQL users and passwords.
Remember to load the Sample Database into MySQL Server before running the notebooks.
Happy coding!
MySQL Recursive CTE:
Emulated Pandas code:
- ER Diagram and Tables of the Database
- Section 01 Querying Data
- Section 02 Sorting Data
- Section 03 Filtering Data
- Section 04 Joining Tables
- Section 05 Grouping Data
- Section 06 Subqueries
- Section 07 Common Table Expressions
- Section 08 Set Operators
- Section 09 Modifying Data in MySQL
My Pandas codes are mainly inspired by this awesome Pandas Cookbook:
- Pandas 1.x Cookbook - 2nd Edition, see it's repository github
If there are any problems or suggestions, feel free to suggest them on the issues page.