def getRowData(data, rownums = None, rownames = None, copy=False):
    """
    Get data from a DataFrame row(s)
    
    Inputs:
      > data: The DataFrame
      > rownums: The number(s) of the row(s)
      > rownames: The name(s) of the row(s)
      > copy (False by default): should we copy the data?
      
    Output:
      > DataFrame of the specified row data
    """
    if rownums is not None:
        subdata = data.iloc[rownums,]
    elif rownames is not None:
        subdata = data.loc[rownames]
    else:
        print("Not doing anything with the data in getRowData()")
        return data
    
    if copy is True:
        subdata = subdata.copy()
    return subdata