@staticmethod
def _check_interpolation(interpolation):
    """
        Checks for the validity of interpolation
        """
    allowed_interpolations = 'linear', 'lower', 'higher', 'midpoint', 'nearest'
    if interpolation not in allowed_interpolations:
        raise ValueError('Available interpolation methods: {}'.format(', '.
            join(allowed_interpolations)))
