morvanzhou / morvanzhou.github.io Goto Github PK
View Code? Open in Web Editor NEW莫烦Python Website source code
Home Page: https://morvanzhou.github.io
莫烦Python Website source code
Home Page: https://morvanzhou.github.io
感觉风格很好。想学习一下。
谢谢!
你好,我想请问下您的这个个人网页使用Django搭建然后上传的吗,如果想要搭个您这样的,大致的步骤是怎么样的
take my knees
由于没有找到别的联系您的方式,只好在github提一个issue来问问题了。说的有点啰嗦,感谢。。
现在是这样的,这里是一组原始数据(从excel中直接读取出来的),可以看到单位净值这里是4位小数(疑问①)
基金代码 | 日期 | 单位净值 |
---|---|---|
735032 | 2019-09-19 | 1.1200 |
735033 | 2019-09-20 | 2.1290 |
736005 | 2019-09-19 | 0.5520 |
735057 | 2019-09-19 | 0.9750 |
736021 | 2019-09-19 | 1.0491 |
735032 | 2019-09-14 | 1.1290 |
当我使用 df2 = df[df["基金代码"]==735032] 这个过滤条件进行过滤的时候,过滤出来的数据是这样的:
基金代码 日期 单位净值
0 735032 2019-09-19 1.120
5 735032 2019-09-14 1.129
可以看到这里就变成了3位小数了(疑问②)
疑问①:因为我的excel中的原始数据都是4位的,不足的补0,但是这里pd读取出来之后展示的逻辑好像是根据最长的小数位来进行显示的(因为我把Excel中的部分数据的末尾的0删除了之后,pd读取的结果和现在是一样的),我应该怎么用代码设置显示N位小数呢,N>4 ,使用round(decimals) 只能设置小于4位
疑问②:我使用过滤条件之后,显示的数据格式(比如小数位数),能不能跟之前pd读取出来的一致呢,因为我最后是想把过滤出来的数据导出到一个新的excel中,我并不知道哪些数据需要保留多少位。
实在感谢,说的有点啰嗦,
请问是用了什么框架 谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.