I have some base.
df = pd.DataFrame([
[time.strftime("%Y-%m-%d", time.gmtime(1611161411.46177)),405.52,39,46,633],
[time.strftime("%Y-%m-%d", time.gmtime(1611161911.46177)),406.52,41,103,582],
[time.strftime("%Y-%m-%d", time.gmtime(1611161911.46177)),406.52,41,146,544],
[time.strftime("%Y-%m-%d", time.gmtime(1611161911.46177)),406.52,41,164,532]], columns=['Date','Balance',"In sell","Quantity","Profit"])
this is what it looks like :
I want to apply to each row:
df = df.style.bar()
This is how I would like to see my final table:
only with formatting of all rows. I ask for your help in this matter.
question from:
https://stackoverflow.com/questions/65857353/how-to-format-strings-differently-in-pandas-python 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…