def get_num_rows()

in Python/length_of_stay_utils.py [0:0]


def get_num_rows(table, connection_string):
    count_sql = RxSqlServerData(sql_query="SELECT COUNT(*) FROM {};".format(table), connection_string=connection_string)
    count = rx_import(count_sql)
    count = count.iloc[0,0]
    return count