PyPartition
Bases: PyObject
Main class for interacting with partitions.
See methods for available uses.
Source code in pytabular/partition.py
__init__(object, table)
Extends from PyObject
class.
Adds a few custom rows to rich
table for the partition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
object |
Partition
|
.Net Partition object. |
required |
table |
PyTable
|
Parent table of the partition in question. |
required |
Source code in pytabular/partition.py
last_refresh()
Queries RefreshedTime
attribute in the partition.
Converts from C# Ticks to Python datetime.
Returns:
Type | Description |
---|---|
datetime
|
datetime.datetime: Last Refreshed time of Partition in datetime format |
Source code in pytabular/partition.py
refresh(*args, **kwargs)
Same method from Model Refresh.
You can pass through any extra parameters. For example:
Tabular().Tables['Table Name'].Partitions[0].refresh()
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: Returns pandas dataframe with some refresh details |