Perhatikan code berikut:
df = pd.read_excel('data_penjualan.xlsx')
print(df)
manakah code yang harus ditambahkan, agar code tersebut bisa bekerja?
Dadakan quiz 1
Quiz
•
Computers
•
12th Grade
•
Hard
Meicank Minang
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Perhatikan code berikut:
df = pd.read_excel('data_penjualan.xlsx')
print(df)
manakah code yang harus ditambahkan, agar code tersebut bisa bekerja?
import pandas as pd
dfpTahun = dfd.copy()
dfd = df[['Wilayah', ' Tanggal Pesanan','Jumlah', 'Harga']]
summary_data = dfpTahun.groupby(['Wilayah','Tahun'])['TPenerimaan'].sum()
2.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Sintaks apa yang harus ditambahkan untuk menampilkan 5 data awal, pada code python berikut ini:
topdata = dframe._ _ _ _ _ _
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Manakah variabel dalam code berikut ini?
dfdata1 = dfHitung.copy()
dfHitung
copy()
dfdata1
tidak ada variabel
4.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Jelaskan kodingan berikut ini:
dfwil['Wilayah_Initials'] = dfwil['Wilayah'].apply(lambda x: ''.join(word[0] for word in x.split()))
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Bagaimana caranya menampilkan judul grafik "Total Penjualan untuk setiap Wilayah"?
plt.title('Total Penjualan untuk setiap Wilayah')
plt.xlabel('Total Penjualan untuk setiap Wilayah')
plt.ylabel('Total Penjualan untuk setiap Wilayah')
plt.show('Total Penjualan untuk setiap Wilayah')
6.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Apa yang akan dihasilkan dari code berikut:
dfwil['TPenerimaan'] = dfwil['Jumlah']*dfwil['Harga']
7.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Code berikut, akan mengubah format tanggal menjadi tahun. Bisakah anda memperbaiki code berikut ini?
dfTahun['Tanggal Pesanan']=pd_ _ _ _ _ _ _ _ _ _ _ _(dfTahun['Tanggal Pesanan'])
13 questions
Data Visualization Quiz
Quiz
•
9th - 12th Grade
15 questions
Data Visualization Assessment
Quiz
•
7th - 12th Grade
15 questions
Python study group: Week 3
Quiz
•
12th Grade
10 questions
Exploring Data Visualization
Quiz
•
9th Grade - University
15 questions
Pyplot
Quiz
•
12th Grade
9 questions
12cs cha16
Quiz
•
12th Grade
5 questions
ASESMEN AD
Quiz
•
12th Grade
12 questions
Dataframe
Quiz
•
10th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University