Tableau Server Client (TSC)
中Sort
的用法。
用法
sort(field, direction)
属性
名字 | 说明 |
---|---|
field |
设置要排序的字段。这些字段在RequestOption 类中定义。 |
direction |
排序方向,升序 (Asc ) 或降序 (Desc )。这些选项在RequestOptions.Direction 类中定义。 |
示例
# create a new instance of a request option object
req_option = TSC.RequestOptions()
# add the sort expression, sorting by name and direction
req_option.sort.add(TSC.Sort(TSC.RequestOptions.Field.Name,
TSC.RequestOptions.Direction.Asc))
matching_workbooks, pagination_item = server.workbooks.get(req_option)
for wb in matching_workbooks:
print(wb.name)
有关使用 Sort
类的信息,请参阅 Filter and Sort 。
相关用法
- Python Sorted()用法及代码示例
- Python Scipy integrate.quadrature()用法及代码示例
- Python Scipy stats.hypsecant.moment()用法及代码示例
- Python String Center()用法及代码示例
- Python Scipy stats.hypsecant.median()用法及代码示例
- Python Sympy Ellipse.equation()用法及代码示例
- Python String decode()用法及代码示例
- Python String转Binary用法及代码示例
- Python String count()用法及代码示例
- Python Scipy stats.halfgennorm.fit()用法及代码示例
- Python Tableau Server用法及代码示例
- Python Sympy encloses_point()用法及代码示例
- Python String join()用法及代码示例
- Python String casefold()用法及代码示例
- Python Scipy stats.halfgennorm.stats()用法及代码示例
- Python Set issubset()用法及代码示例
- Python Sympy Plane.perpendicular_plane()用法及代码示例
- Python Scipy stats.halfgennorm.moment()用法及代码示例
- Python Scipy stats.halfgennorm.std()用法及代码示例
- Python Scipy stats.halfgennorm.logcdf()用法及代码示例
- Python String转Long用法及代码示例
- Python String isalnum()用法及代码示例
- Python Set issuperset()用法及代码示例
- Python String rsplit()用法及代码示例
- Python Sympy Segment.perpendicular_bisector()用法及代码示例
注:本文由纯净天空筛选整理自tableau.github.io大神的英文原创作品 Sort class。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。