```python print(adult.metadata) ``` ```python print(adult.variables) ``` ```python target_variable_name = adult.variables[adult.variables['name'] == 'income']['name'].values[0] ```
Added by Alicia H.
Close
Step 1
metadata)` prints the metadata of the adult dataset. The metadata includes information such as the dataset's name, repository URL, data URL, and abstract. Show more…
Show all steps
Your feedback will help us improve your experience
Supreeta N and 69 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Before looking at the solution, use the solution to help understand how the problem is solved. Save your Jupyter notebook from working on Section 7: Challenge as "Pandas_Names" and this file should have an ipynb extension name. In the "Pandas_Names" notebook, write your own code to plot your own name and at least one relative's name in the male and female name popularity. In the following example, I plot my name "Jane" and a relative's name "John" in the male and female name popularity. We can see John is used as a male name dominantly. Take a screenshot of the code (not shown in the sample below) and the plot you created, save the screenshot in M7_FL. Write your analysis of your chosen names' in male and female name popularity shown in this plot in the M7_FL document. If your name or a relative's name is not in the dataset, use "Penny" as a female name and "Ken" as a male name depending on your own case.
Supreeta N.
In the data set called "data", we have variables Income, Age, and Gender. How would you select only rows with Income 65000? Question 6 What are the variable names of the data frame below if read with the command: read.csv('Dataframe.csv',header=FALSE)? Alpha, 125.50, 0 Beta, 235.60, 1 Beta, 212.03, 0 Beta, 211.30, 0 Alpha, 265.46, 1 no variable names will be assigned dataframe1 dataframe2 dataframe3 V1 V2 V3 V4 Alpha Beta Beta Beta Alpha
Madhur L.
Ivan K.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD