github googleapis/google-cloud-python bigframes-v2.40.0
bigframes: v2.40.0

5 hours ago

v2.40.0 (2026-05-13)

Features

  • Add bigframes.execution_history API to track BigQuery jobs (#16588) (fa20a740)

    import bigframes.pandas as bpd
    bpd.options.compute.enable_execution_history = True
    df = bpd.read_gbq("my_table")
    # ... perform operations ...
    history = bpd.execution_history
    print(history.jobs) # Access BigQuery job details for executed queries
  • Implement ai.similarity and ai.embed for text embeddings and semantic similarity (#16771, #16759) (d4afa2c8, fcb4579b)

    import bigframes.pandas as bpd
    # Generate embeddings
    df["embeddings"] = bpd.bigquery.ai.embed(df["text_col"])
    # Compute similarity
    df["similarity"] = bpd.bigquery.ai.similarity(df["embeddings_a"], df["embeddings_b"])
  • Support hparam_range and hparam_candidates parameters for hyperparameter tuning in model creation (#16640) (ca47835c)

  • Update ai.score, ai.classify and ai.if_ parameters to match their SQL equivalents (#16919, #16990, #16857) (9f42fe14, e9c52b12, f3cb4ad0)

  • Support unstable sorting in sort_values and sort_index (#16665) (bbdeb70f)

  • Support loading Avro and ORC data formats (#16555) (6d46cba3)

  • Add NumPy ufunc support directly on column expressions (#16554) (2f792abd)

Bug Fixes

Performance Improvements

Documentation

  • Add docs to the to_csv methods of dataframe and series (#16570) (a8fccefd)

Don't miss a new google-cloud-python release

NewReleases is sending notifications on new releases.