MulaiMulai sekarang secara gratis

Pandas DataFrames

Numpy is great if your data contains homogeneous data. In many statistical datasets, data will be heterogeneous, i.e., having columns of varying data types. If that's the case, you can use a different library, pandas, to deal with these spreadsheet-like datasets. This gives python the DataFrame object, similar to the one in R.

Latihan ini adalah bagian dari kursus

Python for R Users

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Import the pandas library
____
Edit dan Jalankan Kode