I would really like to get access to some of the updated functions in pandas 0.19, but Azure ML studio uses pandas 0.18 as part of the Anaconda 4.0 bundle. Is there a way to update the version that is used within the "Execute Python Script" components?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- running headless chrome in an microsoft azure web
- Evil ctypes hack in python
The Azure Machine Learning Workbench allows for much more flexibility with setting up environments using Docker. I moved to using that tool.
I offer the below steps for you to show how to update the version of pandas library in
Execute Python Script
.Step 1 : Use the
virtualenv
component to create an independent python runtime environment in your system.Please install it first with commandpip install virtualenv
if you don't have it.If you installed it successfully ,you could see it in your python/Scripts file.
Step2 : Run the commad to create independent python runtime environment.
Step 3 : Then go into the created directory's Scripts folder and activate it (this step is important , don't miss it)
Please don't close this command window and use
pip install pandas==0.19
to download external libraries in this command window.Step 4 : Compress all of the files in the Lib/site-packages folder into a zip package (I'm calling it pandas - package here)
Step 5 :Upload the zip package into the Azure Machine Learning WorkSpace DataSet.
specific steps please refer to the Technical Notes.
After success, you will see the uploaded package in the DataSet List
Step 6 : Before the defination of method
azureml_main
in the Execute Python Script module, you need to remove the oldpandas
modules & its dependencies, then to importpandas
again, as the code below.Then you can see the result from logs as below, first print the old version
0.14.0
, then print the new version0.19.0
from the uploaded zip file.You could also refer to these threads: Access blob file using time stamp in Azure and reload with reset.
Hope it helps you.