Question
Write a program that reads from a CSV file where the separator character is "$". Read only first 5 rows of the dataframe.
Give column headings as Item Name, Quantity, Price.
Make sure to read first row as data and not as column headers.
Give column headings as Item Name, Quantity, Price.
Make sure to read first row as data and not as column headers.
df = pd.read_csv ("data.csv", sep = "$", names = ["Item
Name", "Quantity", "Price"), header = None, rows 35)
print(df)
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.
x_data = [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013]
y_data = [18, 21, 18, 21, 16, 14, 13, 18, 17, 16, 19, 23]