Skip to content

Instantly share code, notes, and snippets.

View sinchantsao's full-sized avatar
🎯
Focusing

Sin Chan sinchantsao

🎯
Focusing
View GitHub Profile
@tombohub
tombohub / df_insert_ignore.py
Created May 18, 2021 19:54
How to save pandas dataframe to MySQL with INSERT IGNORE
"""
This example is for inside the class.
First establish the connection into `self.conn`
"""
def _table_column_names(self, table: str) -> str:
"""
Get column names from database table
Parameters