{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import baostock as bs\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"login success!\n",
"登录响应代码:0\n",
"登录响应信息:success\n"
]
}
],
"source": [
"# 登录并显示返回信息\n",
"lg = bs.login()\n",
"print('登录响应代码:'+lg.error_code)\n",
"print('登录响应信息:'+lg.error_msg)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1.两支股票的历史行情数据的日 k 线和月 k 线的数据,并对数据进行清洗,如缺失值处理等。"
]
},
{
"cell_type": "code",
标签:,lg,code,登录,cell,source,type From: https://www.cnblogs.com/MX-QWQ/p/17936458.html