import pandas as pd
from pathlib import Path
from dascore.utils.tables import require_stated
frame = pd.DataFrame({"sequence": [1, 2]})
require_stated(frame, ["sequence"], Path("t/x.csv")) is NoneTrue
| function of dascore.utils.tables | source |
require_stated(
frame: DataFrame ,
needed ,
path: Path ,
)-> ‘None’
Reject blank cells in required columns.
Ordering and grouping keys must be present: pandas sorts nulls last and drops rows with null grouping keys.
| Parameter | Description |
|---|---|
| frame | The table to check. |
| needed |
The column names which must be stated by every row; a None is ignored. |
| path | The file the table was read from, for the error message. |