You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2023/11/08 14:50:04 UTC

(arrow-cookbook) branch main updated: [Python] Fix error in schema examples (pa.unify_schemas) for dev arrow version (#333)

This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-cookbook.git


The following commit(s) were added to refs/heads/main by this push:
     new b1ab0da  [Python] Fix error in schema examples (pa.unify_schemas) for dev arrow version (#333)
b1ab0da is described below

commit b1ab0dab6e4f4c03426f022c55d4c62915fdc087
Author: Alenka Frim <Al...@users.noreply.github.com>
AuthorDate: Wed Nov 8 15:49:59 2023 +0100

    [Python] Fix error in schema examples (pa.unify_schemas) for dev arrow version (#333)
    
    This PR closes https://github.com/apache/arrow-cookbook/issues/331
---
 python/source/schema.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/source/schema.rst b/python/source/schema.rst
index e73dbfe..561c3ff 100644
--- a/python/source/schema.rst
+++ b/python/source/schema.rst
@@ -211,7 +211,7 @@ because in ``second_schema`` it was already declared as a ``pa.string()``
 
     try:
         union_schema =  pa.unify_schemas([first_schema, second_schema, third_schema])
-    except pa.ArrowInvalid as e:
+    except (pa.ArrowInvalid, pa.ArrowTypeError) as e:
         print(e)
 
 .. testoutput::