diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
index ed5eb767e9..37f6881a15 100644
--- a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
+++ b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
@@ -21,23 +21,22 @@ Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/61095]
 Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
 Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
 ---
- meson.options      |  1 +
- pandas/meson.build | 12 +++++++++---
+ meson.options      |    1 +
+ pandas/meson.build |   12 +++++++++---
  2 files changed, 10 insertions(+), 3 deletions(-)
- create mode 100644 meson.options
 
 diff --git a/meson.options b/meson.options
-new file mode 100644
-index 0000000..3d3a18d
---- /dev/null
+--- a/meson.options
 +++ b/meson.options
-@@ -0,0 +1 @@
+@@ -4,3 +4,4 @@
+     value: false,
+     description: 'Enable UBSan checks beyond the default `undefined` set on the hand-written C/C++ sources. Cython-generated code is excluded because its codegen would drown the results in noise. Only meaningful together with -Db_sanitize=undefined.',
+ )
 +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
 diff --git a/pandas/meson.build b/pandas/meson.build
-index 840ac25..2c3423e 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
-@@ -4,17 +4,23 @@ incdir_numpy = run_command(
+@@ -4,17 +4,23 @@
          '-c',
          '''
  import os
@@ -64,6 +63,3 @@ index 840ac25..2c3423e 100644
      check: true,
  ).stdout().strip()
  
--- 
-2.47.3
-
diff --git a/meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb b/meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb
rename to meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb
index 75581a83a3..b4d1b2e8d2 100644
--- a/meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb
+++ b/meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e98642e1210ade884e5254ab18d55b7d"
 
 SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
 
-SRC_URI[sha256sum] = "66b07ef7315a31bfe1089cd3d71a7de781c9dca986762d0b4fe7c0ef17465d10"
+SRC_URI[sha256sum] = "05fed3e3b7c99b226f160e29d7d6cb7ef39638c758cbfe42b3f24ba34f04b859"
 
 CVE_PRODUCT = "pandas"
 
