這種畫圖方式太方便了,比excel畫圖表操作方便太多。
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 10 07:41:30 2019
@author: User
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas.plotting import andrews_curves
salary=pd.read_csv(u'data\\ch5\salary.csv',encoding = "gbk")
print(salary.info())
andrews_curves(salary[['salary','begin_salary','jobtime','position']],'position')
調和曲線圖: