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'])
9 questions
Checkpoint 1 revision
Quiz
•
9th - 12th Grade
10 questions
Data Science 2
Quiz
•
12th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
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
8 questions
Matplotlib Quiz_2
Quiz
•
12th Grade
10 questions
Dasar-Dasar Algoritma
Quiz
•
10th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade