import csv


def read_from_csv(_path:str):
    """Read csv file and return field names and data rows."""
    fieldNames, dataRows = [], []
    with open(_path, "r", encoding="utf-8") as file:
        # Create a csv reader object.
        csvReader = csv.reader(file)
        # Extract field names through first row.
        fieldNames = next(csvReader)
        # Extract each data row one by one.
        for row in csvReader:
            dataRows.append(row)
    return (fieldNames, dataRows)