Operasi dasar: python Salin kode impor pandas salaku pd # Nyieun DataFrame df = pd.DataFrame) # Copy # Copy # Last 2 baris # col1 col2 col3 # 2 3 30 c # 3 4 d # Shape: [10, 20, 30, 40], 'col3': ['a', 'b', 'c', 'd' }) # Head and Tail printing (df.head) #) # First 2 baris # col1 col2 col3 # 0 1 10 a # 1 2 20 b printing (df.frame) # Copy # Last 2 baris # col1 col2 col3 # 2 3 3 3 30 c 30 3 3 3 3 d # Col2 # shape: [10, 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', '
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence