Skip to content

Commit ad64eed

Browse files
committed
fixes lint and doctest
1 parent 94d98dc commit ad64eed

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

bigframes/bigquery/_operations/json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def json_set(
5353
>>> s = bpd.read_gbq("SELECT JSON '{\\\"a\\\": 1}' AS data")["data"]
5454
>>> bbq.json_set(s, json_path_value_pairs=[("$.a", 100), ("$.b", "hi")])
5555
0 {"a":100,"b":"hi"}
56-
Name: data, dtype: dbjson
56+
Name: data, dtype: extension<dbjson<JSONArrowType>>[pyarrow]
5757
5858
Args:
5959
input (bigframes.series.Series):
@@ -253,7 +253,7 @@ def parse_json(
253253
dtype: string
254254
>>> bbq.parse_json(s)
255255
0 {"class":{"students":[{"id":5},{"id":12}]}}
256-
dtype: dbjson
256+
dtype: extension<dbjson<JSONArrowType>>[pyarrow]
257257
258258
Args:
259259
input (bigframes.series.Series):

bigframes/dtypes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def is_object_like(type_: Union[ExpressionType, str]) -> bool:
301301
return type_ in ("object", "O") or (
302302
getattr(type_, "kind", None) == "O"
303303
and getattr(type_, "storage", None) != "pyarrow"
304-
and getattr(type_, "name", None) != "dbjson"
305304
)
306305

307306

tests/system/small/test_dataframe_io.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import math
1615
from typing import Tuple
1716

1817
import db_dtypes # type:ignore
@@ -36,7 +35,6 @@
3635
from google.cloud import bigquery
3736

3837
import bigframes
39-
from bigframes import dtypes
4038
import bigframes.dataframe
4139
import bigframes.features
4240
import bigframes.pandas as bpd

tests/system/small/test_session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import warnings
2323

2424
import bigframes_vendored.pandas.io.gbq as vendored_pandas_gbq
25-
import db_dtypes # type: ignore
2625
import google
2726
import google.cloud.bigquery as bigquery
2827
import numpy as np

0 commit comments

Comments
 (0)