Gruppierungsfunktionsparameter mit SphinxPython

Python-Programme
Guest
 Gruppierungsfunktionsparameter mit Sphinx

Post by Guest »

Ich möchte die Parameter einer Funktion so gruppieren, dass anstelle von < /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.
Gibt es ein Mittel, dies zu tun? />

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.
Aber dann werden die Liste der alle Parameter zweimal gedruckt, einen unterhalb des Textes "Auswahlparameter" und eine nach dem Text "Inhaltsparameter". /P>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post