code: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  """
  Created on Sun Aug  9 19:22:34 2020
  
  @author: arti
  """
  
  import pandas as pd
  import matplotlib.pyplot as plt
  
  plt.style.use('default')
  
  df = pd.read_csv('./auto-mpg.csv', header=None)
  
  df.columns = ['mpg', 'cylinders', 'displacement', 'horsepower', 'weight',
                'acceleration', 'model year', 'origin', 'name']
  
  df['count'] = 1
  df_origin = df.groupby('origin').sum()
  print(df_origin.head())
  
  df_origin.index = ['USA', 'EU', 'JPN']
  
  df_origin['count'].plot(kind='pie',
                           figsize=(7, 5),
                           autopct='%1.1f%%',
                           startangle=10,
                           colors=['chocolate', 'bisque', 'cadetblue']
                           )
  
  plt.title('Model Origin', size=20)
  plt.axis('equal')
  plt.legend(labels=df_origin.index, loc='upper right')
  plt.show()
apis: matplotlib.pyplot.style.use matplotlib.pyplot.legend pandas.read_csv matplotlib.pyplot.axis matplotlib.pyplot.title matplotlib.pyplot.show