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

No object named P in the file #310

Open
Impesud opened this issue Dec 10, 2023 · 3 comments
Open

No object named P in the file #310

Impesud opened this issue Dec 10, 2023 · 3 comments

Comments

@Impesud
Copy link

Impesud commented Dec 10, 2023

Describe the bug
Hi, unfortunately I saw two errors in the code of chapter 2 and I can't find a solution.

In the file "01_parse_itch_order_flow_messages.ipynb" I see:

1."Cannot serialize the column [primary_market_maker]
because its data contents are not [string] but [integer] object dtype
L" , processes the binary file and produces the parsed orders stored by message type.

  1. "'No object named P in the file'", in the last section of the code.

Screenshots
Screenshot 2023-12-10 143240

Environment
VsCode v1.85
Python v1.8.10
JupytervVsCode extension v2023.11.1003402403

@Impesud
Copy link
Author

Impesud commented Dec 20, 2023

@2f2a
Copy link

2f2a commented Dec 22, 2023

Hi! I put the the solution here: https://github.com/Impesud/machine-learning-for-trading/blob/main/02_market_and_fundamental_data/01_NASDAQ_TotalView-ITCH_Order_Book/01_parse_itch_order_flow_messages.ipynb

View "Impesud Note" rows.

I had the same issue: "..Cannot serialize.."
But your ("Impesud Note") version solved it.

Im on Linux, and use uptodate modules also, just had to rewrite the "Path".

Another difference: "store.append" vs "store._append", <- pandas.HDFStore last line, uhg, so the fix doesn't fix rollback versions of modules, that are suggested to use..

@Impesud
Copy link
Author

Impesud commented Dec 28, 2023

Hi @2f2a
In fact, store._append does not completely solve the problem. We should try again with the concat method, as I did, and find the right way to keep the Q column with the table format, eliminating the fixed one.

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

2 participants