Gruppierungsfunktionsparameter mit Sphinx
Posted: 04 Feb 2025, 15:18
Ich möchte die Parameter einer Funktion so gruppieren, dass anstelle von < /p>
Gibt es ein Mittel, dies zu tun? />
Aber dann werden die Liste der alle Parameter zweimal gedruckt, einen unterhalb des Textes "Auswahlparameter" und eine nach dem Text "Inhaltsparameter". /P>
Code: Select all
myfunc(from, until, col_color, col_taste)
Parameters: · from First date of the period to be selected.
· until Last date of the period to be selected.
· col_color Whether to include the color column in the
output.
· col_taste. Whether to include the taste column in the
output.
< /code>
Ich möchte < /p>
habenmyfunc(from, until, col_color, col_taste)
Selection parameters:
· from First date of the period to be selected.
· until Last date of the period to be selected.
Content parameters:
· col_color Whether to include the color column in the
output.
· col_taste. Whether to include the taste column in the
output.
Code: Select all
def myfunc(from, until, col_color, col_taste)
"""
Gets data from the desires period and returns them as a dataframe.
Selection parameters:
:param from: First date of the period to be selected.
:param until: Last date of the period to be selected.
Content parameters:
:param col_color: Whether to include the color column in the
output.
:param col_taste: Whether to include the taste column in the
output.