Skip to content

Commit

Permalink
High-level to/from_arrow functions for v2. (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Nov 3, 2021
1 parent 81b55a2 commit 17afd7e
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 1,018 deletions.
4 changes: 2 additions & 2 deletions src/awkward/_v2/contents/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ def to_arrow(
string_to32=False,
bytestring_to32=False,
emptyarray_to=None,
indexedarray_as_dictionary=False,
categorical_as_dictionary=False,
extensionarray=True,
count_nulls=True,
):
Expand All @@ -1250,7 +1250,7 @@ def to_arrow(
"string_to32": string_to32,
"bytestring_to32": bytestring_to32,
"emptyarray_to": emptyarray_to,
"indexedarray_as_dictionary": indexedarray_as_dictionary,
"categorical_as_dictionary": categorical_as_dictionary,
"extensionarray": extensionarray,
"count_nulls": count_nulls,
},
Expand Down
2 changes: 1 addition & 1 deletion src/awkward/_v2/contents/indexedarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def _validityerror(self, path):

def _to_arrow(self, pyarrow, mask_node, validbytes, length, options):
if (
not options["indexedarray_as_dictionary"]
not options["categorical_as_dictionary"]
and self.parameter("__array__") == "categorical"
):
next_parameters = dict(self._parameters)
Expand Down
Loading

0 comments on commit 17afd7e

Please sign in to comment.