Sequence / string search with NumPy in pandas DataFrames
Project description
Sequence / string search with NumPy in pandas DataFrames
pip install a-pandas-ex-sequence-search
Tested against Windows 10 / Python 3.11 / Anaconda
import pandas as pd
from a_pandas_ex_sequence_search import pd_add_find_sequence
pd_add_find_sequence()
df = pd.read_csv("https://raw.githubusercontent.com/pandas-dev/pandas/main/doc/data/titanic.csv")
df.Name.s_find_sequence('Mr', exception_val=pd.NA, distance=1)
0 [8]
1 [9]
2 []
3 [10]
4 [7]
5 [7]
6 [10]
7 []
8 [9]
9 [8]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file a_pandas_ex_sequence_search-0.10.tar.gz
.
File metadata
- Download URL: a_pandas_ex_sequence_search-0.10.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caccbae0733ec4cfe64a715d6240b00435f5ccc75df35d2c946ffef6238f4780 |
|
MD5 | 616cc4ebaf0ed374f0522de7dfe1f0da |
|
BLAKE2b-256 | 3676a2e3499847094fbfd8522c1374296f85070264657617ffb686b67df35802 |
File details
Details for the file a_pandas_ex_sequence_search-0.10-py3-none-any.whl
.
File metadata
- Download URL: a_pandas_ex_sequence_search-0.10-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc21e9b5b48efed89326c0f6f96f6f76bd6844dc74fffb90df151e2bb1fc9847 |
|
MD5 | 4e231fdd088ac1fb17e79ab4dd6b6054 |
|
BLAKE2b-256 | 8167f5a66f4b1ea96f525876cffbd70de80dc755af09b4e4bb2a9044ed2ce8f2 |