Tuesday, February 27, 2018

Bad . Habits

I aware of my 2 bad habits: talk logic and reason things out,  and know more then intervene and interfere more.

No one likes other murmuring or interfere own life or work.

很就很久就知道自己有这个毛病,所以我都尽量不去八卦人家的事,不是自己范围的工作,都不去里。可是有时就是忘记了。不然我自己以为在帮忙,其实是多事了。

再者,说道理。没有人喜欢被唠叨,尤其是年轻的时候,自己也曾经不喜欢。他人说的道理,自己一定不想听进去,直到碰上钉子了,才会觉悟。

所以啊,安静好。他人没有开口问或寻求意见,都不要主动去给意见。毕竟每个人都有自己的想法和做法,何必去干扰事情的自由发展。

Data Analysis

When there are millions row of data,  it is not suggested to use looping + conditions check + column assign. It is very slow.

For index,  row in df.iterrow():
  If df.loc[index, "x"]=="y":
    If df.loc[index+1,"x"]=="z":
      df.loc[index,"k"]=df.loc[index+1,"a"]
......

Some advise not to use iterrow() if possible. Well, need to find alternative way.

Last time a simple problem buzzed me for few months, where read_csv was slowed on looping reading multiple csv files, size up to GiB, where data were  originally generated and extracted from text files. The problem was the datetime format, seems like python/pandas prefer in certain format.

The fun of the data analysis is: problem solving skills,  logics,  and get the statistics as evidence to support own suggestions.

Others may do data analysis to get insight of business performance,  I do it because to validate a system structure and system performance.

Fun when get the solutions, headache along the way.

对的人

我们都等对的人。我只渴望是对方的那个对的人。

我,是谁的对的人? Am I your Mr Right?

富贵。花

等了很久它都没开过花,还一度树头渐渐腐烂。

还是妈妈和花有缘,慢慢把它起死回生,开花了。

我和花缘就没那么好,有几棵我栽种的花树,已经枯萎,看了心痛。

正月十二

今年新年少了嫂嫂, 气氛也不一样了。

很快的,她也走了100天了。

成长的代价,就是失去逐渐更多。

珍惜拥有的日子。

Thursday, February 22, 2018

年初七。人日

很快的,就这样过了农历新年,来到了第七天。

新年最快乐的时光,就是家人能聚在一起。平时大家都各有各的忙,难得相聚。

新年最痛苦的事就是无所事事,就是吃饱了再睡。短短几天,如果没有外出逛街,就是躲在家里睡觉,比有做工的日子更难过。我啊这就是贱骨头,一定要有东西忙,才好过,虽然心里会嘀咕,唠叨几句。

忙起来,才不会有多余时间,胡思乱想,一天也容易过。不然就像在公司一样,空闲到要睡觉。

戊戌年,狗年,生肖说自己今年很多桃花,单身的会找到伴侣,也可能结婚喔。唉!桃花已讲了几年,我还是单身。我不要多桃花,只要一个愿意和我共生活,一起互相扶持过人生就好。至于结婚,是就好。

其实多桃花,也就是说人缘好,也不错。在生活上工作上就会比较顺利,没那么多阻碍。但如果不留意,遇上烂桃花,就会有麻烦。而且桃花多,对那些结了婚的,如果不自律,对另一半不负责,就会出轨,搞外遇。人啊,男的女的都一样,如果不自爱,出事了,才来后悔,也是自找的。

戊戌年,大吉大利,计划顺利。