使用Python和amp;浏览数据. [英] Exploring data using Python & R .
问题描述
我尝试使用Python探索数据.但是只要我这样做,我总是收到一条消息:
ValueError :工作区ID未提供,并且无法通过config使用. p>尝试使用R探索数据时,我也会收到相同的消息.请问如何解决此问题.
来自 导入 工作区 = 工作区
workspace_id "WORKSPACEID"
authorization_token 'AUTH_TOKEN'
端点 'https://studioapi.azureml.net' ) = . [
框架 ds to_dataframeValueError: workspace_id not provided and not available via config .
I also get the same message when trying to explore data using R .Please how can i resolve this .
解决方案Hi,
For solving this issue, please try following:
from azureml import Workspace
ws = Workspace(
workspace_id='WORKSPACEID',
authorization_token='AUTH_TOKEN',
endpoint='https://studioapi.azureml.net'
)
ds = ws.datasets['YOUR DATASET']
frame = ds.to_dataframe()The R code should be similar as above, you need to define the Workspace as well.
Thanks a lot!
Regards,
Yutong
这篇关于使用Python和amp;浏览数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!