def __new__(cls, *args, **kwargs): if OLD_PANDAS: arr = Series.__new__(cls, *args, **kwargs) else: arr = Series.__new__(cls) if type(arr) is LIESeries: return arr else: return arr.view(LIESeries)
def __new__(cls, *args, **kwargs): kwargs.pop('crs', None) if OLD_PANDAS: args = _convert_array_args(args) arr = Series.__new__(cls, *args, **kwargs) else: arr = Series.__new__(cls) if type(arr) is GeoSeries: return arr else: return arr.view(GeoSeries)
def __new__(cls, *args, **kwargs): kwargs.pop('sr', None) if OLD_PANDAS: args = _convert_array_args(args) arr = Series.__new__(cls, *args, **kwargs) else: arr = Series.__new__(cls) if type(arr) is GeoSeries: return arr else: return arr.view(GeoSeries)
def __new__(cls, *args, **kwargs): kwargs.pop('crs', None) arr = Series.__new__(cls) if type(arr) is GeoSeries: return arr else: return arr.view(GeoSeries)
def __new__(cls, *args, **kwargs): kwargs.pop('crs', None) arr = Series.__new__(cls) if type(arr) is GeoSeries: return arr else: return arr.view(GeoSeries)
def __new__(cls, *args, **kwargs): arr = Series.__new__(cls, *args, **kwargs) if type(arr) is ScadaSeries: return arr else: return arr.view(ScadaSeries)
def __new__(cls, *args, **kwargs): kwargs.pop('wavelengths', None) kwargs.pop('metadata', None) kwargs.pop('tolerance', 2) arr = Series.__new__(cls) if type(arr) is Spectrum: return arr else: return arr.view(Spectrum)
def __new__(cls, *args, **kwargs): # http://stackoverflow.com/a/11982602/1220158 arr = Series.__new__(cls, *args, **kwargs) return arr.view(GeoSeries)
def __new__(cls, *args, **kwargs): kwargs.pop('crs', None) arr = Series.__new__(cls, *args, **kwargs) return arr.view(GeoSeries)