Skip to content
New issue

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

Cannot parse real-time microstructure data #160

Open
bastienqueste opened this issue Jan 19, 2024 · 4 comments
Open

Cannot parse real-time microstructure data #160

bastienqueste opened this issue Jan 19, 2024 · 4 comments

Comments

@bastienqueste
Copy link

At line ~131, "pl.read_csv(f, separator=';')" in seaexplorer.py, read_csv cannot parse extreme microstructure values as i64:

ComputeError: Could not parse 2.22e-101as dtypei64` at column 'MR1000G-RDL_EPS2' (column number 22).
The current offset in the file is 490928 bytes.

You might want to try:

  • increasing infer_schema_length (e.g. infer_schema_length=10000),
  • specifying correct dtype with the dtypes argument
  • setting ignore_errors to True,
  • adding 2.22e-101 to the null_values list.`
@bastienqueste
Copy link
Author

Probably should state that this is not surprising. 2.22e-101 is a stupid value for Rockland and Alseamar to be returning.

@jklymak
Copy link
Member

jklymak commented Jan 19, 2024

Hmm I'm surprised it won't parse that exponent. If you can link an example or suggest a PR I'm sure this is easy to fix

@callumrollo
Copy link
Collaborator

It probably shouldn't be parsing microstructure data as 64 bit integer. I assume it would read fine into a float? Maybe we should start catching and specifying dtypes

@bastienqueste
Copy link
Author

bastienqueste commented Jan 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants