Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyarrow: Check compatibility of pyarrow.array with string type #2933
pyarrow: Check compatibility of pyarrow.array with string type #2933
Changes from 10 commits
1f32a7c
4c4e064
07fbca6
d379e46
cfda386
0a6cda5
f59f93c
757da24
17c1e9c
0105d64
3ad0c86
4bea288
371174a
b588730
faf2065
b2efbb4
9fd77dc
ccf4eff
44d01ed
a927202
7b00248
7dc353b
ce76152
ef431af
acaf350
6ad6eb9
d88accd
265132e
edb3438
8172102
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need to revert changes in this PR, since the low-level function
Session.put_strings
only acceptsnumpy.str_
and everything else should be converted tonumpy.str_
by the_to_numpy
function before callingput_strings
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, just to document things, the way we are intending pyarrow.string inputs to go through high-level modules like
fig.text
is:pygmt.Figure.text
->clib.Session.virtualfile_in
->clib.Session.virtualfile_from_vectors
clib.Session.virtualfile_from_vectors
:clib.conversion.vectors_to_arrays
->clib.conversion._to_numpy
->np.ascontiguous_array
to convertpyarrow.string
tonp.str_
list[np.str_]
, this is then passed toclib.Session.put_strings
For the record, the original intention in this PR, mostly in commit d379e46, was to let
clib.Session.put_strings
handle bothnp.str_
andpyarrow.string
.