KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums PyKX PyKX Project – Netflix – Exercise 2

  • PyKX Project – Netflix – Exercise 2

    Posted by johnbear on February 17, 2024 at 12:00 am

    I wrote Python Array but it’s a fail and the data count is also wrong. I am using kx.q.qsql.select and I printed an array for only TV but it’s still not working.

    Can you help me solution?

     

     

     

    johnbear replied 2 months, 1 week ago 3 Members · 2 Replies
  • 2 Replies
  • soo

    Member
    December 5, 2023 at 12:00 am

    thank youMegan

  • megan_mcp

    Administrator
    February 19, 2024 at 12:00 am

    Hi ,

    You are correct for using kx.q.qsql.select, but maybe take a look at the below links to correct the formatting of your query.

    This will output a pykx.Table which then can easily be converted to a python array.

    Generating PyKX objects – PyKX

    Querying – PyKX

    Hope this helps!

    Thanks,

    Megan

Log in to reply.