KX Community

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

Home Forums kdb+ embedPy/ BeautifulSoup Re: embedPy/ BeautifulSoup

  • simon_watson_sj

    Member
    July 16, 2021 at 12:00 am

    Actually, subsequent to this, using:

    q)p)def func(x):return x.attrs

    in place of

    q)p)def func(x):return str(x)

    will return a python dictionary of attributes. Since this is a native python type, I found that it imports to Q as a dictionary and keeps the nested structure.