Skip to content

Commit

Permalink
Update python/pyarrow/compute.py
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
  • Loading branch information
AlenkaF and pitrou authored Apr 13, 2022
1 parent bcbed3b commit 9167c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyarrow/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def field(name_or_index):
-------
field_expr : Expression
"""
if isinstance(name_or_index, str) or isinstance(name_or_index, int):
if isinstance(name_or_index, (str, int)):
return Expression._field(name_or_index)
elif isinstance(name_or_index, tuple):
return Expression._nested_field(name_or_index)
Expand Down

0 comments on commit 9167c71

Please sign in to comment.