piper.text.pipe_function_parms¶
-
piper.text.pipe_function_parms(idx: int, value: str) → str[source]¶ pipe_parser() - join function with associated parameters
Each statement within the pipeline is individually parsed into two sections:
the function name
the corresponding parameters
Examples
statements = [('head(', 'n=10)')] result = [pipe_function_parms(idx, x) for idx, x in enumerate(statements)] result > ['head(n=10)']
- Parameters
idx – list index currently being processed
value – function + optional parameters required to form .pipe() statement
- Returns
- Return type
piped functional statement