[Python] How do I import sklearn along with numpy and pandas

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I have copied this from our university's ipynb notebook, but it's stopping at importing sklearn (which has already been installed with pip). Even if I take out sklearn, it's stopping at pandas.

    import numpy as np
    import sklearn
    import pandas as pd


    I expected it to run, which eventually means that I should be able to read the training data with a csv file, but it is not working. What should I do?

    Continue reading...

Compartilhe esta Página