What to do when the column name is a reserved word of Python #51
Unanswered
AzamBukhari
asked this question in
Q&A
Replies: 1 comment 1 reply
-
df['class'].unique() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
During Tips & Tricks lecture we came across a topic of using a function called: unique()
print(df.embark_town.unique())
What to do if we come across a situation where instead of column name 'embark_town' we have to use 'class' for example:
print(df.class.unique())
it is throwing error.,
Beta Was this translation helpful? Give feedback.
All reactions