index
BaseIndex ¶
Bases: ImmutableObject, ABC
Base class for SaolaPy indices.
query_column_queries
property
¶
Returns list of query column queries.
object_str
staticmethod
¶
Returns string representation of object with given class name and properties.
Parameters:
-
class_name
(
str) –Name of object class.
-
properties
(
OrderedDict[str, Any]) –Properties to include.
Returns:
-
str–String representation.
shorten_string
staticmethod
¶
Shortens string to have maximum of max_length characters.
Index ¶
Bases: BaseIndex
One-dimensional PQL Index.
Parameters:
-
data
(
ColumnLike) –Data to be used. Can be either PQL query string, PQLColumn, or PQLOperator.
-
name
(
str) –Name of object. Defaults to 'Index'.
query_column_queries
property
¶
Returns list of query column queries.
object_str
staticmethod
¶
Returns string representation of object with given class name and properties.
Parameters:
-
class_name
(
str) –Name of object class.
-
properties
(
OrderedDict[str, Any]) –Properties to include.
Returns:
-
str–String representation.
shorten_string
staticmethod
¶
Shortens string to have maximum of max_length characters.
MultiIndex ¶
Bases: BaseIndex
Multi-dimensional PQL Index.
Parameters:
-
levels
(
List[Index]) –Indices to be used as multi index.
query_column_queries
property
¶
Returns list of query column queries.
object_str
staticmethod
¶
Returns string representation of object with given class name and properties.
Parameters:
-
class_name
(
str) –Name of object class.
-
properties
(
OrderedDict[str, Any]) –Properties to include.
Returns:
-
str–String representation.
shorten_string
staticmethod
¶
Shortens string to have maximum of max_length characters.
RangeIndex ¶
Bases: Index
Immutable index implementing a monotonically increasing integer range.
Parameters:
-
start
(
int) –Start of range, defaults to 0.
-
step
(
int) –Step size of range, defaults to 1.
-
name
(
str) –Name of object.
query_column_queries
property
¶
Returns list of query column queries.
object_str
staticmethod
¶
Returns string representation of object with given class name and properties.
Parameters:
-
class_name
(
str) –Name of object class.
-
properties
(
OrderedDict[str, Any]) –Properties to include.
Returns:
-
str–String representation.
shorten_string
staticmethod
¶
Shortens string to have maximum of max_length characters.