Skip to main content

Reads data separated by any char

pip install a-pandas-ex-read-charsep-frames

Common problem:

  File "pandas\_libs\parsers.pyx", line 808, in pandas._libs.parsers.TextReader.read_low_memory

  File "pandas\_libs\parsers.pyx", line 866, in pandas._libs.parsers.TextReader._read_rows

  File "pandas\_libs\parsers.pyx", line 852, in pandas._libs.parsers.TextReader._tokenize_rows

  File "pandas\_libs\parsers.pyx", line 1973, in pandas._libs.parsers.raise_parser_error

pandas.errors.ParserError: Error tokenizing data. C error: Expected 4 fields in line 4, saw 5

Fills up missing values with NaN

from a_pandas_ex_read_charsep_frames import pd_add_read_charsep_frames

import pandas as pd

pd_add_read_charsep_frames()

df = pd.Q_read_charsep_frames(

    encoding="utf-8",

    file_or_string=r"C:\Users\Gamer\Documents\Downloads\alladd.txt",

    sep="\t",

)



print(df)





             0_0  ...                                                0_4

0       01001000  ...                                               <NA>

1       01001001  ...                                               <NA>

2       01001010  ...                                               <NA>

3       01001900  ...   UNESP - Universidade Estadual Júlio de Mesqui...

4       01001901  ...                               Edifício Santa Lídia

          ...  ...                                                ...

732758  99975970  ...                                 AGC São João Bosco

732759  99978000  ...                                               <NA>

732760  99980000  ...                                               <NA>

732761  99980970  ...                                 AC David Canabarro

732762  99980974  ...                           AGC São José do Capingui

[732763 rows x 5 columns]

Metadata

Release files for a-pandas-ex-read-charsep-frames 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-read-charsep-frames 0.10
File Size Uploaded Provenance Actions
a_pandas_ex_read_charsep_frames-0.10.tar.gz 3.8 kB Without provenance Details for a_pandas_ex_read_charsep_frames-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-read-charsep-frames 0.10
File Interpreter ABI Platform Actions
a_pandas_ex_read_charsep_frames-0.10-py3-none-any.whl Python 3 none any Details for a_pandas_ex_read_charsep_frames-0.10-py3-none-any.whl

Total release size: 9.6 kB

Release files / a_pandas_ex_read_charsep_frames-0.10.tar.gz

Download URL a_pandas_ex_read_charsep_frames-0.10.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
007d2daa5e52aa6d0b205afcd9f47f2de4a0a531f8b8cf7e87aae76d55edac4d
BLAKE2b-256 checksum
How to use checksums
ee1b03b4a3e284d9bc23a7fa137038b8d665dde8ffc2efe75f74766c70be988b
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_read_charsep_frames-0.10-py3-none-any.whl

Download URL a_pandas_ex_read_charsep_frames-0.10-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
360acd03726238359dd602c903745d2f73ebc3fb74e708c514f5f1fcfb286706
BLAKE2b-256 checksum
How to use checksums
c38a6d65f6008f3fcfa70fb4c0ccca7af3c4b001b8b0dfd59ec51ca232062313
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-read-charsep-frames 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