DataFrame
Canonical path: Utils.TabularDataUtil.DataFrame
Bases: dict
Two-dimensional tabular data structure with labeled axes (rows and columns)
__getitem__
__init__
__init__(
data: Optional[Dict[Union[int, str], List[str]]] = None,
columns: Optional[Union[List[int], List[str]]] = None,
index: Optional[List[int]] = None,
)
Initialization of class DataFrame
Parameters:
-
data
(Optional[Dict[Union[int, str], List[str]]]
, default:None
) –tabular data which is a dictionary of lists
-
columns
(Optional[Union[List[int], List[str]]]
, default:None
) –column labels
-
index
(Optional[List[int]]
, default:None
) –row index
get_row
get_row(key: str, value: str) -> Optional[Series]
Get a row from data frame by a condition: column_label == value
Parameters:
-
key
(str
) –column label
-
value
(str
) –new value
Returns:
-
Optional[Series]
–row value
Placeholder