application
15 minData Analysis with Code Execution
data-science
csv
analysis
Tools:Google AI Studio
Use the LLM as a data analyst by having it generate mock data and then write code to process and analyze that data.
Step 1 of 3
Generate Data
Ask the model: 'Generate a CSV file representing mock survey data for 100 participants.'
Analyze Data
Ensure Code Execution is ON. Ask the model to analyze the data it just generated (e.g., 'Calculate the average age of the participants' or 'What percentage answered Yes to question 3?').
Verify
Check the code block the model generated to see exactly how it calculated the answer.