Querying for a single entry #432
Unanswered
PeterPilley
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Been playing with the data a little bit more to see if I can get the query working without success. But I see in the error a .query is performing a .iloc which does have a rows parameter. I have re-read other issues and I cant see where I am going wrong here with this simple query. I have tried df.query({"column": "filename", "is": "==", "to": "f216d9f9a9d21f7899f7294854a6f30c.mp4"}) I have tried loading the json via readJSON as well as manually via require('./file.json') and then loading that into a dataframe. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi firstly thanks so much for this library it is exactly what I was after.
I am having some issues getting started though, coming from pandas in python.
I have tried loading json data as dfd.readJSON(file) and then attempting to query it using .query
df.query({column: ["filename"], is: "==", to:"f216d9f9a9d21f7899f7294854a6f30c.mp4"})
However when I attempt this I am getting the following error:
rows parameter must be an Array. For example: rows: [1,2] or rows: ["0:10"]
I have gone through the documentation and I can see using the rows param for loc and iloc but for query I cant figure out where I am going wrong. any help is really appreciated
Beta Was this translation helpful? Give feedback.
All reactions