最近在网课学习爬数据,从雅虎下载数据报错No module named ‘matplotlib.finance’,代码如下:
from mpl_finance import quotes_historical_yahoo
from datetime import date
import pandas as pd
today=date.today()
start=(today.year-1,today.month,today.day)
quotes = quotes_historical_yaho
pandas的DateFrame类似于excel的数据储存结构,故为了便于pandas进行数据处理,设计者提供了简便的方法进行数据的读取,下面写上代码
import pandas as pd
import numpy as np
def save_excel(arr, exc_filename=None): #读取excel的函数
Save the data in excel format
if exc_filename == None:
exc_fi