KX Community

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

Home Forums PyKX xgroup error in taxi and weather analysis Reply To: xgroup error in taxi and weather analysis

  • rocuinneagain

    Member
    August 27, 2024 at 10:50 am

    Add .reset_index() when you create the tables to unkey them, then the for loop will run as you expect. For example:

    group_taxi_dates = kx.q.xgroup("pickup_date", taxi_tab).reset_index()