Monday, August 17, 2020

Machine Learning || Running a sample program on Python

 Once you have Anaconda installed as previously explained on : 

 https://massiveinputs.blogspot.com/2020/08/step-1-for-machine-learning-python.html

1) Just Anaconda Navigator and click on Jupyter Notebook and import four Major Libraries.

Jupyter Notebook is your handy stop for writing/testing simple Python programs on a browser page.

moment you click on Jupyter you will 



These libraries will be used in every other program that you are going to try:

import pandas as pd

import numpy as np

import matplotlib as mp

import sklearn as sl

from pandas import read_excel


2) to execute at each step, either Press RUN button on Jupyter or press shift+enter.

3) Create a sample excel and upload the same in Jupyter.


4) Just read the excel and print the content: 

df = pd.read_excel("TestExcelForML.xlsx")



thats it,, as simple as that...

just 3 or 4 lines of code and you are able to read excel content, we will learn more in next article.

No comments:

Post a Comment