How to use the awkward.pandas.mixin function in awkward

To help you get started, we’ve selected a few awkward examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scikit-hep / awkward-array / awkward / array / union.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / indexed.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / indexed.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / jagged.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / objects.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / objects.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / table.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / union.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / objects.py View on Github external
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
github scikit-hep / awkward-array / awkward / array / masked.py View on Github external
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