Posts

Data Pre-processing for Machine Learning

Image
  Traditional Computer Computation: ¶ (Data & Program) -> Computer -> Output Machine Learning: ¶ (Data & Output) -> Computer -> Program/Model The model that is generated is used to predict the results for the future Machine Learning (ML) is subset of Artificial Intelligence (AI) In this exercise, let us learn below Data Pre-processing Techniques: Data Acquisition Data Exploration Data Wrangling Data Manipulation In [3]: import os os . getcwd () #gets current working directory Out[3]: 'C:\\Users\\ns45237\\working_neeraj\\2_machine_learning' In [38]: #Data Acquisition #Loading the CSV file in Python import pandas as pd #pandas is python data wrangling package df = pd . read_csv ( 'BostonHousing.csv' ) #read the CSV file into a Python DataFrame #df.to_csv("/home/neerajshinde/Data/BostonHousing.csv") #loading data into an existing CSV file #df = pd.read_excel('BostonHousing.xlsx') #read the XLSX file into a Python