Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a_pandas_ex_sequence_search-0.10.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file a_pandas_ex_sequence_search-0.10.tar.gz.

File metadata

File hashes

Hashes for a_pandas_ex_sequence_search-0.10.tar.gz
Algorithm Hash digest
SHA256 caccbae0733ec4cfe64a715d6240b00435f5ccc75df35d2c946ffef6238f4780
MD5 616cc4ebaf0ed374f0522de7dfe1f0da
BLAKE2b-256 3676a2e3499847094fbfd8522c1374296f85070264657617ffb686b67df35802

See more details on using hashes here.

File details

Details for the file a_pandas_ex_sequence_search-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for a_pandas_ex_sequence_search-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fc21e9b5b48efed89326c0f6f96f6f76bd6844dc74fffb90df151e2bb1fc9847
MD5 4e231fdd088ac1fb17e79ab4dd6b6054
BLAKE2b-256 8167f5a66f4b1ea96f525876cffbd70de80dc755af09b4e4bb2a9044ed2ce8f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page