@box(SeriesType)
def box_series(typ, val, c):
 series = make_series(c.context, c.builder, typ, value=val)
 classobj = c.pyapi.unserialize(c.pyapi.serialize_object(Series))
 indexobj = c.box(typ.index, series.index)
 arrayobj = c.box(typ.as_array, series.values)
 seriesobj = c.pyapi.call_function_objargs(classobj, (arrayobj, indexobj))
 return seriesobj

@ box ( SeriesType ) def box_series ( typ , val , c ) : series = make_series ( c . context , c . builder , typ , value = val ) classobj = c . pyapi . unserialize ( c . pyapi . serialize_object ( Series ) ) indexobj = c . box ( typ . index , series . index ) arrayobj = c . box ( typ . as_array , series . values ) seriesobj = c . pyapi . call_function_objargs ( classobj , ( arrayobj , indexobj ) ) return seriesobj
convert a native series structure to a series object .