I have error to select my columns hours and game
I have tried different codes but none of them are working.
import pandas as pd
import numpy as np
# upload the dataset to spyder
data = pd.read_csv("C:/Users/User/Documents/FYP II/gamedataset.csv")
# Data selection on columns needed for data mining
collect = data[['Game','Genre','price','Hours','Day.period','Age','Gender','Violence.Rate','Cause.gaming','CID.Rating',]]
i expect a dataset collect to show
i get:
KeyError: "['Hours', 'Game'] not in index