本文整理汇总了Python中pandas.io.data.DataReader.describe方法的典型用法代码示例。如果您正苦于以下问题:Python DataReader.describe方法的具体用法?Python DataReader.describe怎么用?Python DataReader.describe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pandas.io.data.DataReader
的用法示例。
在下文中一共展示了DataReader.describe方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: datetime
# 需要导入模块: from pandas.io.data import DataReader [as 别名]
# 或者: from pandas.io.data.DataReader import describe [as 别名]
end = datetime.now()
start = datetime(end.year-1,end.month,end.day)
# In[5]:
# Importing Amazon Stock Prices
AMZN = DataReader('AMZN','yahoo',start,end)
# In[6]:
# Some Basic info about the Amazon Stock
AMZN.describe()
# In[7]:
# Plotting Adjusted Closing price for Amazon Stock
AMZN['Adj Close'].plot(legend=True,figsize=(10,4))
# In[8]:
# Plotting the total volume of stock being traded each day
AMZN['Volume'].plot(legend=True,figsize=(10,4))
示例2: datetime
# 需要导入模块: from pandas.io.data import DataReader [as 别名]
# 或者: from pandas.io.data.DataReader import describe [as 别名]
end = datetime.now()
start = datetime(end.year-1,end.month,end.day)
# In[5]:
# Importing Apple Stock Prices
AAPL = DataReader('AAPL','yahoo',start,end)
# In[6]:
# Some Basic info about the Apple Stock
AAPL.describe()
# In[7]:
# Plotting Adjusted Closing price for Apple Stock
AAPL['Adj Close'].plot(legend=True,figsize=(10,4))
# In[8]:
# Plotting the total volume of stock being traded each day
AAPL['Volume'].plot(legend=True,figsize=(10,4))
示例3: datetime
# 需要导入模块: from pandas.io.data import DataReader [as 别名]
# 或者: from pandas.io.data.DataReader import describe [as 别名]
end = datetime.now()
start = datetime(end.year-1,end.month,end.day)
# In[7]:
# Importing Google Stock Prices
GOOG = DataReader('GOOG','yahoo',start,end)
# In[8]:
# Some Basic info about the Google Stock
GOOG.describe()
# In[9]:
# Plotting Adjusted Closing price for Google Stock
GOOG['Adj Close'].plot(legend=True,figsize=(10,4))
# In[10]:
# Total volume of stock being traded each day
GOOG['Volume'].plot(legend=True,figsize=(10,4))
示例4: DataReader
# 需要导入模块: from pandas.io.data import DataReader [as 别名]
# 或者: from pandas.io.data.DataReader import describe [as 别名]
from pandas.io.data import DataReader
from datetime import datetime
import pandas as pd
import numpy as np
df = DataReader("GOOG", "yahoo", datetime(2009,1,1), datetime(2013,5,5))
df=df['Open']
df=df.groupby(df.index.map(lambda x: x.year)).mean()
print df.describe()
print df.to_string
示例5: datetime
# 需要导入模块: from pandas.io.data import DataReader [as 别名]
# 或者: from pandas.io.data.DataReader import describe [as 别名]
end = datetime.now()
start = datetime(end.year-1,end.month,end.day)
# In[6]:
# Importing Tesla Motors Stock Prices
TSLA = DataReader('TSLA','yahoo',start,end)
# In[7]:
# Some Basic info about the Tesla motors Stock
TSLA.describe()
# In[8]:
# Plotting Adjusted Closing price for Tesla Motors Stock
TSLA['Adj Close'].plot(legend=True,figsize=(10,4))
# In[9]:
# Plotting the total volume of stock being traded each day
TSLA['Volume'].plot(legend=True,figsize=(10,4))
开发者ID:namman2,项目名称:Data-Analytics-Projects,代码行数:32,代码来源:Stock+Market+Risk+Analysis+for+Tesla+Motors.py