vcdata
Virtual columns dataclass
VCData = VCList()
module-attribute
#
Specific VCList instance for each kernel.
VCList
#
Virtual column data class
Attributes:
Name | Type | Description |
---|---|---|
columns |
dict[str, str]
|
list of virtual columns by their name and expression. |
Source code in src/sdss_explorer/dashboard/dataclass/vcdata.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
add_column(name, expression)
#
Add a virtual column to the DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
name of vc to add |
required |
expression
|
str
|
custom expression |
required |
Source code in src/sdss_explorer/dashboard/dataclass/vcdata.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
delete_column(name)
#
Remove a virtual column from the DataFrame.
Warning
This could lead to race conditions. Untested under high stress.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
name of vc to remove |
required |
Source code in src/sdss_explorer/dashboard/dataclass/vcdata.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|