def _sensorupsampletocellsbyInterpolation(df, cellsy):
    """
        
    Function for when sensorsy in the results are less than cellsy desired.
    Interpolates the dataframe.
    
    #2DO: improve interpolation with pandas. right onw it's row by row.
    
    _sensorupsampletocellsbyInterpolation(df, cellsy)
    """
    import pandas as pd
    import numpy as np
    sensorsy = len(df)
    cellCenterPVM = []
    for i in range(0, cellsy):
        cellCenterPVM.append((i * sensorsy / cellsy + (i + 1) * sensorsy /
            cellsy) / 2)
    df2 = pd.DataFrame()
    for j in range(0, len(df.keys())):
        A = list(df[df.keys()[j]])
        B = np.interp(cellCenterPVM, list(range(0, sensorsy)), A)
        df2[df.keys()[j]] = B
    return df2
