I work with Microsoft Databrics and there is a simple function to save a table with a pyspark dataframe
table_name = 'location.table_name'
df.write.saveAsTable(table_name)
However this does not works with a pandas dataframe, and making a conversion is problematic.
What I need is a function that, given only 2 arguments, dataframe and tablename, makes the same function
Should look like this:
def save_pandas_to_SQL(df, 'location.table_name'):
"""Function"""