Learn practical skills, build real-world projects, and advance your career
# Data cleaning in python
# Major part in data cleaning
#-->Droping unnecessary coloum in a DataFrame
#-->Changing the index of DataFrame
#-->using .str() to clean coloum.
#-->Using the DataFrame.applymap() function to clean coloumns.
#-->Renaming columns to a more recognizable sets of lables.
#-->skipping unnecessary rows in CSV file.
 
import numpy as np
import pandas as pd
#reading csv data and passing to dataframe
df = pd.read_csv('BL-Flickr-Images-Book-subset.csv')
#head function takes first rows in the data
## head(10)-- show first 10 data. by default head()
df.head()