macpie.BasicList#
- class macpie.BasicList(initlist=None)#
A basic list of Datasets.
- __init__(initlist=None)#
Methods
__init__
([initlist])append
(item)S.append(value) -- append value to the end of the sequence
clear
()copy
()count
(value)excel_dict_dsets
(excel_dict)excel_dict_filter_tags
(excel_dict, tags)excel_dict_filterfalse_tags
(excel_dict, tags)extend
(other)S.extend(iterable) -- extend sequence by appending elements from the iterable
filter
(tag)Returns a new instance of
BasicList
, excluding anymacpie.Dataset
objects that do not contain the giventag
.from_excel_dict
(excel_file, excel_dict)get_dataset_history_info
()Contruct and return an
macpie.DictLikeTablibDataset
object containing allmacpie.Dataset.history
information.index
(value, [start, [stop]])Raises ValueError if the value is not present.
insert
(i, item)S.insert(index, value) -- insert value before index
keep_fields
(selected_fields[, ...])Keep specified fields (and drop the rest).
pop
([index])Raise IndexError if list is empty or index is out of range.
remove
(item)S.remove(value) -- remove first occurrence of value.
replace_tag
(old_tag, new_tag)Iterate over Datasets in this list and replace
old_tag
withnew_tag
.reverse
()S.reverse() -- reverse IN PLACE
sort
(*args, **kwds)to_excel
(excel_writer[, write_excel_dict])Write
BasicList
to an Excel file by callingmacpie.Dataset.to_excel()
on eachmacpie.Dataset
in this list.to_excel_dict
()Convert the
BasicList
to a dictionary.Attributes
all_fields
A list of all
macpie.Dataset.all_fields
contained in thisAnchoredList
.dsets
The list of Datasets.
key_fields
A list of all
macpie.Dataset.key_fields
contained in thisBasicList
.sys_fields
A list of all
macpie.Dataset.sys_fields
contained in thisAnchoredList
.