From a84346406143efacaccc38f54e1a2377f9aa620a Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 30 Nov 2023 17:04:48 +0800 Subject: [PATCH] Enable testing pd.Int32Dtype/pd.Int64Dtype for geopandas integration --- pygmt/tests/test_geopandas.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygmt/tests/test_geopandas.py b/pygmt/tests/test_geopandas.py index 44992df76da..65443f6b9c0 100644 --- a/pygmt/tests/test_geopandas.py +++ b/pygmt/tests/test_geopandas.py @@ -2,6 +2,7 @@ Test integration with geopandas. """ import numpy.testing as npt +import pandas as pd import pytest from pygmt import Figure, info, makecpt, which @@ -140,8 +141,8 @@ def test_geopandas_plot3d_non_default_circle(): "int64", # Enable Int32/Int64 dtypes when geopandas>=0.13.3 is released with # patch https://github.com/geopandas/geopandas/pull/2950 - # pd.Int32Dtype(), - # pd.Int64Dtype(), + pd.Int32Dtype(), + pd.Int64Dtype(), ], ) @pytest.mark.mpl_image_compare(filename="test_geopandas_plot_int_dtypes.png")