Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("UnionSeries", self)
out._contents = [x._util_pandas(seen) if isinstance(x, awkward.array.base.AwkwardArray) else x for x in out._contents]
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("IndexedSeries", self)
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._util_pandas(seen)
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("SparseSeries", self)
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._util_pandas(seen)
return out
def _topandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin(type(self))
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._topandas(seen)
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("StringSeries", self)
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._util_pandas(seen)
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("StringSeries", self)
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._util_pandas(seen)
return out
def _topandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin(type(self))
out._contents = OrderedDict((n, x._topandas(seen) if isinstance(x, awkward.array.base.AwkwardArray) else x) for n, x in out._contents.items())
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("UnionSeries", self)
out._contents = [x._util_pandas(seen) if isinstance(x, awkward.array.base.AwkwardArray) else x for x in out._contents]
return out
def _util_pandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin("ObjectSeries", self)
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._util_pandas(seen)
return out
def _topandas(self, seen):
import awkward.pandas
if id(self) in seen:
return seen[id(self)]
else:
out = seen[id(self)] = self.copy()
out.__class__ = awkward.pandas.mixin(type(self))
if isinstance(self._content, awkward.array.base.AwkwardArray):
out._content = out._content._topandas(seen)
return out