We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
python
0.10.15
windows
pl.Series.str.slice can not substr chinese characters
Example
df = pl.DataFrame( { "b": ["foo", "ham", "spam", "egg", "中文"], } ) df[[pl.col('b').str.slice(1,1)]]
above code snippet will throw error
PanicException: A non-utf8 string was passed.: Utf8Error
slice(1, 1) should return ["o", "a", "p", "g", "文"]
The text was updated successfully, but these errors were encountered:
Thanks, for the issue report. Forgot about UTF8, will fix it!
Sorry, something went wrong.
Fix upstream: jorgecarleitao/arrow2#568
Successfully merging a pull request may close this issue.
Are you using Python or Rust?
python
What version of polars are you using?
0.10.15
What operating system are you using polars on?
windows
Describe your bug.
pl.Series.str.slice can not substr chinese characters
What are the steps to reproduce the behavior?
Example
What is the actual behavior?
above code snippet will throw error
What is the expected behavior?
slice(1, 1) should return ["o", "a", "p", "g", "文"]
The text was updated successfully, but these errors were encountered: