我正在使用hide_index()
,但是当我尝试使用它时,数据框未显示。如果我排除该数据框,打印效果很好。
我没有收到错误消息,但这是我在日志中看到的:
pandas.io.formats.style.Styler object at 0x101cca198
from iexfinance import Stock, get_historical_data
from datetime import date, timedelta
import pandas as pd
from flask import Flask, render_template, request # import the Flask class
start = date.today() + timedelta(-90)
end = date.today()
app = Flask(__name__) # create an instance of this class. This is needed for Flask to know where to look for templates
pandas_ds = get_historical_data("NFLX", start, end, output_format='pandas')
ds_hideindex = pandas_ds.style.hide_index()
print(ds_hideindex)