From 2b79331edfc459a8895758ca52518da08700ded0 Mon Sep 17 00:00:00 2001 From: christopeak Date: Wed, 8 May 2024 17:41:52 -0700 Subject: [PATCH] add docstring for ElmerConn.stage_table() --- psrcelmerpy/conn/elmer_conn.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/psrcelmerpy/conn/elmer_conn.py b/psrcelmerpy/conn/elmer_conn.py index 8e0aa61..522c01e 100644 --- a/psrcelmerpy/conn/elmer_conn.py +++ b/psrcelmerpy/conn/elmer_conn.py @@ -58,6 +58,17 @@ def list_recordsets(self, schema_name='', include_base_tables=False): raise def stage_table(self, df, table_name): + """ + Send a data frame to a new table in the database, in schema "stg" + + Parameters + ---------- + df : a data frame + The data frame to write to the database + table_name : str + The name that the new staging table is to have. + + """ try: engine = self.engine df.to_sql(name=table_name, schema='stg', con=engine, index=False)