So when I wrote out the code, it shows a red line under it. : new_df = df.loc[(df[“salary”] == “>50K”)][“native-country”].value_counts()
Here’s the error I get:
File “/home/runner/boilerplate-demographic-data-analyzer-3/demographic_data_analyzer.py”, line 48
new_df = df.loc[(df[“salary”] == “>50K”)][“native-country”].value_counts()
^
SyntaxError: invalid syntax
exit status 1
I don’t know how syntax error I’m making, I would appreciate it if anyone can lend a hand at this.