Skip to content

Commit

Permalink
updating histogram docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaalbashir committed Oct 18, 2023
1 parent e07a1c7 commit 94944d7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions acro/acro_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,13 @@ def hist( # pylint: disable=too-many-arguments,too-many-locals
filename="histogram.png",
**kwargs,
):
"""Create a histogram.
"""Creates a histogram from a single column.
The dataset and the column's name should be passed to the function as parameters.
If more than one column is used the histogram will not be calculated.
To save the histogram plot to a file, the user can specify a filename otherwise
'histogram.png' will be used as the filename. A number will be appended automatically
to the filename to avoid overwriting the files.
Returns
-------
Expand All @@ -558,8 +564,8 @@ def hist( # pylint: disable=too-many-arguments,too-many-locals
-----------
data : DataFrame
The pandas object holding the data.
column : str or sequence, optional
If passed, will be used to limit data to a subset of columns.
column : str
The column that will be used to plot the histogram.
by : object, optional
If passed, then used to form histograms for separate groups.
grid : bool, default True
Expand Down

0 comments on commit 94944d7

Please sign in to comment.