Skip to content
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

Bump pyarrow to 0.12.1 #649

Merged
merged 3 commits into from
May 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix pandas infer_dtype warning
  • Loading branch information
rshkv committed May 17, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit cc90b214ea4155dd2d8d1c421ad98884ee794a88
2 changes: 1 addition & 1 deletion python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
@@ -1697,7 +1697,7 @@ def _infer_binary_columns_as_arrow_string(schema, pandas_df):

for field_index, field in enumerate(schema):
if field.type == pa.binary() and \
pd.api.types.infer_dtype(pandas_df.iloc[:, field_index]) == "string":
pd.api.types.infer_dtype(pandas_df.iloc[:, field_index], skipna=True) == "string":
field_as_string = pa.field(field.name, pa.string())
schema = schema.set(field_index, field_as_string)