我正在尝试使用 google.cloud.bigquery.client.Client 库中的“schema_from_json”属性,但它没有找到该属性,并且它出现在库文档中。
我已经更新了库,但它保持不变。
我的 Python 版本是 3.7
来源:https ://googleapis.github.io/google-cloud-python/latest/bigquery/generated/google.cloud.bigquery.client.Client.html
from google.cloud import bigquery
dir(bigquery.client.Client)
['SCOPE',
'_SET_PROJECT',
'__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getstate__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_call_api',
'_determine_default',
'_do_multipart_upload',
'_do_resumable_upload',
'_get_query_results',
'_http',
'_initiate_resumable_upload',
'cancel_job',
'copy_table',
'create_dataset',
'create_table',
'dataset',
'delete_dataset',
'delete_table',
'extract_table',
'from_service_account_json',
'get_dataset',
'get_job',
'get_service_account_email',
'get_table',
'insert_rows',
'insert_rows_json',
'job_from_resource',
'list_datasets',
'list_jobs',
'list_partitions',
'list_projects',
'list_rows',
'list_tables',
'load_table_from_dataframe',
'load_table_from_file',
'load_table_from_uri',
'location',
'query',
'update_dataset',
'update_table']
慕沐林林
相关分类