Index
BaseIndex ¶
Bases: ImmutableObject
, ABC
Base class for SaolaPy indices.
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
, default:'Index'
) –Name of object. Defaults to 'Index'.
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.
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
, default:0
) –Start of range, defaults to 0.
-
step
(int
, default:1
) –Step size of range, defaults to 1.
-
name
(str
, default:'Index'
) –Name of object.
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.