def scale(self, x=1, y=1, pt=None):
        from sympy.geometry.point import Point
        if pt:
            pt = Point(pt)
            return self.translate(*(-pt).args).scale(x, y).translate(*pt.args)
        return type(self)(*[a.scale(x, y) for a in self.args])  # if this fails, override this class
return our new index
dataset/ETHPy150Open sympy/sympy/sympy/geometry/entity.py/GeometryEntity.scale--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/tseries/resample.py/PeriodIndexResampler._get_new_index