Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is my code: import pandas as pd import sqlite 3 df = pd . read _ csv ( ' Ten _ Students _ Grades.csv
This is my code:
import pandas as pd
import sqlite
df pdreadcsvTenStudentsGrades.csv
db sqliteconnectstudentdb
cursor dbcursor
query "CREATE TABLE IF NOT EXISTS TenStudentsID INT NOT NULL PRIMARY KEY, Firstname TEXT, Lastname TEXT, Midterm REAL, Final REAL, Project REAL, Project REAL, Grade REAL, LetterGrade TEXT;
cursor.executequery
printpdreadsqlSelect from TenStudents', db
insertquery INSERT INTO TenStudentsID Firstname, Lastname, Midterm, Final, Project Project Grade, LetterGrade values
dbclose
how do I:
Write a query to insert all records by a single "INSERT" query.
Write a query to order students by their names from A Z
Write a query to return number of students who received the same "Letter Grade"
Write a query to delete all students with LetterGrade D
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