It may go away: what to do to earn more than others?

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/xo3ylAF9kGs/article/details/90725150

Home is over 11:30, late at night. A return is June.


In May, the North and neither hot nor cold, this is a high efficiency, the results of the time, but on reflection, I did not make anything.


We all want to be rich, you want to earn more than others people. So, what to do to earn more than others? It will at least earn more than 80% of people.


There is a a law might apply to ordinary people: you have to work so that they are better than 80% of people better.


You may ask, how to do better than 80% of people. Tell you the truth, I have no good answer, and now see themselves did not do better than 80% of people, but are willing to share methods that might work with you, make yourself into such a person.


First, then a small thing, do not fine if the results are not good .


Take pandas read csv file, the surface is not a csv file to read it, as more than 40 parameters to do, and there's most probably will not get with it, questions such as these, you when beginning to use read_csv, there will be doubts in this regard.


So, if replaced by you, me, him, to develop read_csv function, and perhaps also a small number of parameters.


However, if you have many years of experience in engineering IO, the boss asked you to design this function, I think you will not easily talk to him this function development so easy, to get a half-day of lying.


Instead, you take care to speak with the boss, there are many cases to be broken down, such as reading the G how to deal with hundreds of large files, such as parsing out when the bank how to deal with an increase in the column, such as might face a garbage problem ...... boss, oh oh so this little thing to deal with them have to be so complicated ah. At this point, the boss of you to do this thing, in fact, has an idea.


The second, and then a small thing, as long as the worthy, need meticulous . Furthermore, small painstaking, and not so easy.


read_csv now perfect yet? NO!


You if you are interested, you can issues check source code library, you will find this function in dealing with some extreme cases, such as the time when there is a column value type when # transformation, will continue to exist bug.


Late, to close at May Pen concluded thoughts: grow from a small start carefully polished a humble, your accumulation of wealth also breeds them.


In June, hello! Children's Day, Hello! I wish you all a place to Tongxin An important position.



Recommended reading:

Csv file read and write Python tutorial topic (1)

Csv file read and write Python tutorial topic (2)

Csv file read and write Python tutorial topic (3)


640?wx_fmt=jpeg

Python and algorithms Community

Guess you like

Origin blog.csdn.net/xo3ylAF9kGs/article/details/90725150