Skip to main content

Search through all columns of a DataFrame without worrying about Exceptions

$pip install a-pandas-ex-loc-no-exceptions



import re

import pandas as pd

from a_pandas_ex_loc_no_exceptions import pd_add_loc_no_exceptions



pd_add_loc_no_exceptions()



df=pd.read_pickle('f:\\dafasdfaf.pkl')

print(df.d_loc_no_exception('str.contains','youtube',na=False,flags=re.I))

print(df.d_loc_no_exception('__eq__','Non-Data Actions'))

print(df.d_loc_no_exception('__gt__',print)) #wont throw exception





Operators cannot be passed to the function! 

Use dunders like in the examples! 



<	-	__lt__

<=	-	__le__

==	-	__eq__

!=	-	__ne__

>	-	__gt__

>=	-	__ge__

+	-	__add__

+=	-	__iadd__

-	-	__sub__

*	-	__mul__

@	-	__matmul__

/	-	__truediv__

//	-	__floordiv__

%	-	__mod__

**	-	__pow__

<<	-	__lshift__

>>	-	__rshift__

&	-	__and__

^	-	__xor__

|	-	__or__

~   -	__invert__



 

Metadata

Release files for a-pandas-ex-loc-no-exceptions 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-pandas-ex-loc-no-exceptions 0.10
File Size Uploaded Provenance Actions
a_pandas_ex_loc_no_exceptions-0.10.tar.gz 3.7 kB Without provenance Details for a_pandas_ex_loc_no_exceptions-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-loc-no-exceptions 0.10
File Interpreter ABI Platform Actions
a_pandas_ex_loc_no_exceptions-0.10-py3-none-any.whl Python 3 none any Details for a_pandas_ex_loc_no_exceptions-0.10-py3-none-any.whl

Total release size: 9.0 kB

Release files / a_pandas_ex_loc_no_exceptions-0.10.tar.gz

Download URL a_pandas_ex_loc_no_exceptions-0.10.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
040732cdbd898f820d82cb3d5ab9c3905c6db7825519b6ab762d0d071e734c11
BLAKE2b-256 checksum
How to use checksums
6ae03c471fc5f2896d1508a0891db0949d264c4af19db0da54dd0561df43f231
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / a_pandas_ex_loc_no_exceptions-0.10-py3-none-any.whl

Download URL a_pandas_ex_loc_no_exceptions-0.10-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
207677e89c9f38ff41392504aeb86e703bbd28325bbbf9961f3472793417e230
BLAKE2b-256 checksum
How to use checksums
13e80c90704ade10ae96ef1cdbe3467ff8c96a1dddfecf164f3ea0a7162132c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for a-pandas-ex-loc-no-exceptions 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page