def _get_curve_params(header, dataset_name):
    """
    Get the curve related LAS parameters from the header.
    For every curve, get the 'mnemonic', 'unit' and 'description'.
    Set the 'mnemonic' as index and return the transposed pd.DataFrame to be
    able to index on them through the columns.

    Args:
        header (pd.DataFrame): Header meta data.
            See `las.from_las()` for description.
        dataset_name: The name of the dataset as found in the LAS file. Can be:
            'Curves', 'Log,' 'Core', 'Inclinometry', 'Drilling', 'Tops', 'Test'

    Returns:
        curve_params (pd.DataFrame): LAS parameters that belong to the curve(s)

    """
    # retrieve curves mnemonics, units and descriptions from header
    curve_header = header[(header["section"] == dataset_name)]

    curve_params = curve_header[['mnemonic', 'unit', 'descr']]

    return curve_params.set_index('mnemonic').T