Skip to content

Commit 44a4cab

Browse files
committed
remove bpd boilerplate
1 parent 00b89d6 commit 44a4cab

File tree

16 files changed

+0
-378
lines changed

16 files changed

+0
-378
lines changed

bigframes/dataframe.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,6 @@ def to_pandas(
17701770
17711771
**Examples:**
17721772
1773-
>>> import bigframes.pandas as bpd
17741773
>>> df = bpd.DataFrame({'col': [4, 2, 2]})
17751774
17761775
Download the data from BigQuery and convert it into an in-memory pandas DataFrame.
@@ -1891,7 +1890,6 @@ def to_pandas_batches(
18911890
18921891
**Examples:**
18931892
1894-
>>> import bigframes.pandas as bpd
18951893
>>> df = bpd.DataFrame({'col': [4, 3, 2, 2, 3]})
18961894
18971895
Iterate through the results in batches, limiting the total rows yielded
@@ -4249,7 +4247,6 @@ def _resample(
42494247
42504248
**Examples:**
42514249
4252-
>>> import bigframes.pandas as bpd
42534250
42544251
>>> data = {
42554252
... "timestamp_col": pd.date_range(

bigframes/operations/strings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def reverse(self) -> series.Series:
6767
6868
**Examples:**
6969
70-
>>> import bigframes.pandas as bpd
7170
7271
>>> s = bpd.Series(["apple", "banana", "", bpd.NA])
7372
>>> s.str.reverse()

bigframes/series.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ def to_pandas(
532532
533533
**Examples:**
534534
535-
>>> import bigframes.pandas as bpd
536535
>>> s = bpd.Series([4, 3, 2])
537536
538537
Download the data from BigQuery and convert it into an in-memory pandas Series.
@@ -659,7 +658,6 @@ def to_pandas_batches(
659658
660659
**Examples:**
661660
662-
>>> import bigframes.pandas as bpd
663661
>>> s = bpd.Series([4, 3, 2, 2, 3])
664662
665663
Iterate through the results in batches, limiting the total rows yielded
@@ -2418,7 +2416,6 @@ def _resample(
24182416
24192417
**Examples:**
24202418
2421-
>>> import bigframes.pandas as bpd
24222419
24232420
>>> data = {
24242421
... "timestamp_col": pd.date_range(

bigframes/session/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,6 @@ def read_gbq_query(
617617
618618
**Examples:**
619619
620-
>>> import bigframes.pandas as bpd
621620
622621
Simple query input:
623622
@@ -772,7 +771,6 @@ def read_gbq_table(
772771
773772
**Examples:**
774773
775-
>>> import bigframes.pandas as bpd
776774
777775
Read a whole table, with arbitrary ordering or ordering corresponding to the primary key(s).
778776
@@ -850,7 +848,6 @@ def read_gbq_table_streaming(
850848
**Examples:**
851849
852850
>>> import bigframes.streaming as bst
853-
>>> import bigframes.pandas as bpd
854851
855852
>>> sdf = bst.read_gbq_table("bigquery-public-data.ml_datasets.penguins")
856853
@@ -878,7 +875,6 @@ def read_gbq_model(self, model_name: str):
878875
879876
**Examples:**
880877
881-
>>> import bigframes.pandas as bpd
882878
883879
Read an existing BigQuery ML model.
884880
@@ -947,7 +943,6 @@ def read_pandas(
947943
948944
**Examples:**
949945
950-
>>> import bigframes.pandas as bpd
951946
952947
>>> d = {'col1': [1, 2], 'col2': [3, 4]}
953948
>>> pandas_df = pd.DataFrame(data=d)
@@ -1823,7 +1818,6 @@ def udf(
18231818
18241819
**Examples:**
18251820
1826-
>>> import bigframes.pandas as bpd
18271821
>>> import datetime
18281822
18291823
Turning an arbitrary python function into a BigQuery managed python udf:
@@ -1986,7 +1980,6 @@ def read_gbq_function(
19861980
19871981
**Examples:**
19881982
1989-
>>> import bigframes.pandas as bpd
19901983
19911984
Use the [cw_lower_case_ascii_only](https://github.com/GoogleCloudPlatform/bigquery-utils/blob/master/udfs/community/README.md#cw_lower_case_ascii_onlystr-string)
19921985
function from Community UDFs.

third_party/bigframes_vendored/pandas/core/computation/eval.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ def eval(
172172
173173
**Examples:**
174174
175-
>>> import bigframes.pandas as bpd
176175
177176
>>> df = bpd.DataFrame({"animal": ["dog", "pig"], "age": [10, 20]})
178177
>>> df

third_party/bigframes_vendored/pandas/core/config_init.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
2020
Define Repr mode to "deferred" will prevent job execution in repr.
2121
22-
>>> import bigframes.pandas as bpd
2322
>>> df = bpd.read_gbq("bigquery-public-data.ml_datasets.penguins")
2423
2524
>>> bpd.options.display.repr_mode = "deferred"

0 commit comments

Comments
 (0)