Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create two class by python: 1) make_me_a_set(n, A, B, B|A) 2) make_me_a_set(n, A, B, B|A, B|notA) Each of these functions should return a pandas data
Create two class by python:
1) make_me_a_set(n, A, B, B|A)
2) make_me_a_set(n, A, B, B|A, B|notA)
Each of these functions should return a pandas data frame which meets the parameters.
Ideally these sets would be randomly generated rather than simply prescribed but it is up to you.
the df will be of form
A, B
1,1
0,1
1,1
....
1 and 0 may be replaced with True and False if you wish.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started