unionai-oss / pandera

A light-weight, flexible, and expressive statistical data testing library
https://www.union.ai/pandera
MIT License
3.05k stars 281 forks source link

Set pandas_io.from_frictionless_schema to use a raw string for docs #1597

Closed mark-thm closed 3 weeks ago

mark-thm commented 4 weeks ago

In Python 3.12 I receive the following SyntaxWarning just by importing pandas_io:

.../site-packages/pandera/io/pandas_io.py:743: SyntaxWarning: invalid escape sequence '\S'
  """Create a :class:`~pandera.api.pandas.container.DataFrameSchema` from either a

By setting the docs to a raw string, these otherwise invalid escape sequences are permitted.

mark-thm commented 3 weeks ago

The CI failure seems unrelated to this change, it’s not clear to me what steps I might take to debug. Any pointers?

cosmicBboy commented 3 weeks ago

Can you rebase onto main branch?

mark-thm commented 3 weeks ago

Rebased to main.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.12%. Comparing base (4df61da) to head (090db11). Report is 71 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1597 +/- ## =========================================== - Coverage 94.29% 83.12% -11.17% =========================================== Files 91 114 +23 Lines 7024 8490 +1466 =========================================== + Hits 6623 7057 +434 - Misses 401 1433 +1032 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

cosmicBboy commented 3 weeks ago

thanks @mark-thm, and congrats on your first contribution to pandera! 🚀

mark-thm commented 3 weeks ago

@cosmicBboy any sense of when the next release (containing this PR) is due to come out?