Skip to content

Commit 9ce10b4

Browse files
rey-esptswast
andauthored
feat: add __version__ alias to bigframes.pandas (#967)
* add new alias '__version__' * remove accidental changes * correct assignment --------- Co-authored-by: Tim Sweña (Swast) <[email protected]>
1 parent aeccc48 commit 9ce10b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bigframes/functions/_remote_function_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def wrapper(func):
387387
# https://docs.python.org/3/library/inspect.html#inspect.signature
388388
signature_kwargs: Mapping[str, Any] = {"eval_str": True}
389389
else:
390-
signature_kwargs = {}
390+
signature_kwargs = {} # type: ignore
391391

392392
signature = inspect.signature(
393393
func,

bigframes/pandas/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
import bigframes.session
7070
import bigframes.session._io.bigquery
7171
import bigframes.session.clients
72+
import bigframes.version
7273

7374
try:
7475
import resource
@@ -838,6 +839,7 @@ def clean_up_by_session_id(
838839
Index = bigframes.core.indexes.Index
839840
MultiIndex = bigframes.core.indexes.MultiIndex
840841
Series = bigframes.series.Series
842+
__version__ = bigframes.version.__version__
841843

842844
# Other public pandas attributes
843845
NamedAgg = namedtuple("NamedAgg", ["column", "aggfunc"])
@@ -911,6 +913,7 @@ def reset_session():
911913
"Index",
912914
"MultiIndex",
913915
"Series",
916+
"__version__",
914917
# Other public pandas attributes
915918
"NamedAgg",
916919
"options",

0 commit comments

Comments
 (0)