dataframe
Functions for processing dataframes for the Table views.
df_columns(df)
#
Return a list of column names from a dataframe.
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
29 30 31 32 33 34 35 36 37 38 |
|
df_len(df)
#
Return the number of rows in a dataframe.
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
24 25 26 |
|
df_records(df)
#
A list of records from a dataframe.
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
59 60 61 62 63 64 65 66 67 68 |
|
df_row_names(df)
#
Return a list of row names from a dataframe.
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
41 42 43 44 45 46 47 48 |
|
df_slice(df, start, stop)
#
Return a subset of rows from a dataframe.
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
51 52 53 54 55 56 |
|
format_default(df, column, row_index, value)
#
Format strings properly
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
90 91 92 93 94 |
|
format_targets(df, column, row_index, value)
#
Format the targets dataframe for special columns like sdss_id
Source code in src/sdss_explorer/dashboard/components/views/dataframe.py
235 236 237 238 239 240 241 242 243 244 245 246 |
|