I am trying to select China's nationality tourists, this is my code snippet-
import pandas as pd
China = ses[(ses["S1Country"] == 1)]
List_China = China[['Case','S1Country']]
List_China
This is what i put before the error
Here I am trying to selecting certain data - most sources that people used, the code snippet to perform it-
import pandas as pd
Ranking1 = ses[(ses["Q7Infor1"] == 1)]
List_Ranking1 = Ranking1[['China','Q7Infor1']]
List_Ranking1
Then I wrote this code and it reported back to me
'KeyError: "['China'] not in index'
How do I solve it? Thanks for checking in!
sample of the data: