python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Comparing two groups with categorical data
I am a complete newb - I hope I have framed my question well. I will try to clarify anything that is unclear or expressed poorly. Here goes...
I have two groups - New Teachers and Experienced Teachers...
PPchs
Votes: 0
Answers: 0
How to get the percentage of categorical variables by group?
I have this dataframe
my_data = {"A" : ['x', 'x', 'x', 'y', 'y', 'y', 'y', 'z', 'z'],
"B" : ['i', 'i', 'j', 'j', 'j', 'k', 'k', 'k', 'k'],
"C" : [0,...
xelos0218
Votes: 0
Answers: 2
Pandas – ValueError: Cannot setitem on a Categorical with a new category, set the categories first
I've been searching for a solution to this for the past few hours now. Relevant pandas documentation is unhelpful and this solution gives me the same error.
I am trying to order my dataframe using a c...

wasimsandhu
Votes: 0
Answers: 2