No finding sklearn_pandas import DataFrameMapper

Samer Sammour 51 Reputation points
2022-09-19T11:44:25.663+00:00

Hi,

I'm trying to execute Running experiments in Azure Machine Learning exercise which is part of exercise files found at https://aka.ms/mslearn-dp090.

I keep getting an error {ModuleNotFoundError: No module named 'sklearn_pandas'} so it doesn't recognize sklearn_pandas. Any idea about how to resolve this?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,303 questions
0 comments No comments
{count} vote

Accepted answer
  1. PRADEEPCHEEKATLA 90,496 Reputation points
    2022-09-20T05:16:28.41+00:00

    Hello @Samer Sammour ,

    Thanks for the question and using MS Q&A platform.

    Make sure you have followed the instruction metioned here: Install libraries on the Azure Databricks Cluster

    The notebooks you will run depends on certain Python libraries that will need to be installed in your cluster. The following steps walk you through adding these dependencies.

    • From within the Azure Databricks workspace, from the Clusters section, select your cluster. Make sure the state of the cluster is Running.
    • Select the Libraries link and then select Install New.
    • In the Library Source, select PyPi and in the Package text box type azureml-sdk[databricks] and select Install.
    • Next install sklearn-pandas==2.1.0
    • Next install azureml-mlflow

    242769-image.png

    For more details, refer to different methods to install packages in Azure Databricks

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.