Developer Center

The technical resources you need for KX products, all in one place.

PYKX

Introducing PyKX

KX’s official Python interface. With PyKX, you can:

  • Develop with Python and kdb+ in the same workflow
  • Use Python to build time-series databases and streaming applications
  • Run queries, build APIs, and analyze data using in Python, SQL and kdb+
  • Seamlessly work between PyKX and other Python libraries such as Pandas, Numpy, PyArrow
  • Visualize data insights natively with tools such as Plotly, Matplotlib and Seaborn

And it’s open source!

# Create an in-memory table
table = kx.Table(data = {
    'sym': kx.random.random(1000, ['AAPL', 'GOOG']),
    'price': kx.random.random(1000, 10.0),
    'volume': kx.random.random(1000, 1000)})

# Query this data
table.select(
    columns = kx.Column('price').max().name('max_price') &
              kx.Column('price').min().name('min_price') &
              kx.Column('price').wavg(kx.Column('volume')).name('vwap'),
    by = kx.Column('sym'))

# Add a date column 
table.update(kx.Column('date', value = kx.DateAtom('today')), inplace=True)

# Reorder columns setting date as the first column
table.reorder_columns('date', inplace=True)

New to PyKX

We offer a wide range of training options, from self led to KX courses

Documentation

Explore our technical documentation for detailed guides, references and examples to unlock the full potential of PyKX.

Learn more

Releases

Keep up to date with the latest enhancements, new features, bug fixes and improvements.

Find out more

KX Academy

Learn how to generate, analyze, and query large datasets using PyKX, focusing on data structures, tables, and time series analysis.

Start learning

Integrate with KX products and our partners

We offer a wide range of training options, from self led to KX courses

kdb+

Build applications which embed machine learning and data science libraries into production q infrastructures.

Read now

Databricks

KX for Databricks leverages PyKX directly inside Databricks, for Python and distributed Spark workloads.

Read now

KX Dashboards

Combine Python’s extensive libraries and functionalities with the high-performance capabilities of KX for data analysis, visualization, and interactive dashboard creation.

Read now

Snowflake

Use the power of PyKX to manage data and run time series analytics in Snowflake cloud.

Read now

Didn’t find what you’re looking for?

Ask our Community for help! Whether it’s surfacing existing content or creating new content for your needs, we’re on it!

Subscribe to our newsletter

Stay up-to-date on the latest product releases, integrations, tutorial guides, and events from KX.








    Follow us on social media

    YouTube
    Twitter
    LinkedIn