Skip to content

feat: add __version__ alias to bigframes.pandas #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 10, 2024
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
2 changes: 1 addition & 1 deletion bigframes/functions/_remote_function_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def wrapper(func):
# https://docs.python.org/3/library/inspect.html#inspect.signature
signature_kwargs: Mapping[str, Any] = {"eval_str": True}
else:
signature_kwargs = {}
signature_kwargs = {} # type: ignore

signature = inspect.signature(
func,
Expand Down
3 changes: 3 additions & 0 deletions bigframes/pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import bigframes.session
import bigframes.session._io.bigquery
import bigframes.session.clients
import bigframes.version

try:
import resource
Expand Down Expand Up @@ -838,6 +839,7 @@ def clean_up_by_session_id(
Index = bigframes.core.indexes.Index
MultiIndex = bigframes.core.indexes.MultiIndex
Series = bigframes.series.Series
__version__ = bigframes.version.__version__

# Other public pandas attributes
NamedAgg = namedtuple("NamedAgg", ["column", "aggfunc"])
Expand Down Expand Up @@ -911,6 +913,7 @@ def reset_session():
"Index",
"MultiIndex",
"Series",
"__version__",
# Other public pandas attributes
"NamedAgg",
"options",
Expand Down