Degree is the number of columns in a table.
Eg: Consider the following tables:
Supposing Table : Account contains 3 rows and 2 columns.
Cardinality of Account table is : 3
Degree of Account table is :2
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.
Write a program that reads a string and check whether it is palindrome or not.
Table: Club
| Member_id | Member_Name | Address | Age | Fee |
| M001 | Sumit | New Delhi | 20 | 2000 |
| M002 | Nisha | Gurgaon | 19 | 3500 |
| M003 | Niharika | New Delhi | 21 | 2100 |
| M004 | Sachin | Faridabad | 18 | 3500 |
(i) What is the cardinality and degree of the above given table?
(ii) If a new column contact_no has been added and three more members have joined the club then how these changes will affect the degree and cardinality of the above given table.
(a) To create the, Data Frame with columns Name, Occupation, Date of join, Age. The datafrme should contain only 2 rows.
(b) Add the index Emp001 and Emp002.
(c) Print the data
(d) Add a new row [Emp003]