Skip to content

Commit

Permalink
feat: add __version__ alias to bigframes.pandas (#967)
Browse files Browse the repository at this point in the history
* add new alias '__version__'

* remove accidental changes

* correct assignment

---------

Co-authored-by: Tim Sweña (Swast) <swast@google.com>
  • Loading branch information
rey-esp and tswast authored Sep 10, 2024
1 parent aeccc48 commit 9ce10b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 9ce10b4

Please sign in to comment.