Skip to content

Commit

Permalink
added docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
bodealamu committed Jul 3, 2021
1 parent e8be560 commit c613b91
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions graph_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@


def graph_controls(chart_type, df, dropdown_options, template):
"""
Function which determines the widgets that would be shown for the different chart types
:param chart_type: str, name of chart
:param df: uploaded dataframe
:param dropdown_options: list of column names
:param template: str, representation of the selected theme
:return:
"""
length_of_options = len(dropdown_options)
length_of_options -= 1

Expand Down
6 changes: 6 additions & 0 deletions image_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

@st.cache
def download_chart(plot, output_format):
"""
:param plot: plotly figure
:param output_format: str, the required output format in string
:return:
"""

file_name_with_extension = 'image1' + output_format

Expand Down

0 comments on commit c613b91

Please sign in to comment.