Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/bigframes/bigframes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

# Register pandas extensions
import bigframes.extensions.pandas.dataframe_accessor # noqa: F401, E402
import bigframes.extensions.pandas.series_accessor # noqa: F401, E402
from bigframes._config.bigquery_options import BigQueryOptions # noqa: E402
from bigframes.core.global_session import ( # noqa: E402
close_session,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
BigframesAIAccessor,
BigframesBigQueryDataFrameAccessor,
)
from bigframes.extensions.bigframes.series_accessor import (
BigframesBigQuerySeriesAccessor,
)

__all__ = ["BigframesAIAccessor", "BigframesBigQueryDataFrameAccessor"]
__all__ = [
"BigframesAIAccessor",
"BigframesBigQueryDataFrameAccessor",
"BigframesBigQuerySeriesAccessor",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# DO NOT MODIFY THIS FILE DIRECTLY.
# This file was generated by the script: scripts/generate_bigframes_bigquery.py
#

from __future__ import annotations

from typing import Optional, TypeVar, cast

import bigframes.extensions.core.series_accessor as core_accessor
import bigframes.series
import bigframes.session
from bigframes.core.logging import log_adapter

S = TypeVar("S", bound="bigframes.series.Series")


@log_adapter.class_logger
class BigframesBigQuerySeriesAccessor(core_accessor.BigQuerySeriesAccessor[S]):
def __init__(self, bf_obj: S):
super().__init__(bf_obj)

def _bf_from_series(
self, session: Optional[bigframes.session.Session] = None
) -> bigframes.series.Series:
return self._obj

def _to_series(self, bf_series: bigframes.series.Series) -> S:
return cast(S, bf_series)

@property
def aead(self) -> BigframesAeadSeriesAccessor[S]:
return BigframesAeadSeriesAccessor(self._obj)


@log_adapter.class_logger
class BigframesAeadSeriesAccessor(core_accessor.AeadSeriesAccessor[S]):
def __init__(self, bf_obj: S):
super().__init__(bf_obj)

def _bf_from_series(
self, session: Optional[bigframes.session.Session] = None
) -> bigframes.series.Series:
return self._obj

def _to_series(self, bf_series: bigframes.series.Series) -> S:
return cast(S, bf_series)
Loading
Loading