Python Pandas Analysis of Yu Dafu's "Ancient Capital Autumn"

Source: Internet
Author: User

Recently just learned this piece, if has the wrong place also invites everybody magnanimous.

The python package used in this article:

Ipython, Numpy, Pandas, matplotlib

Ancient capital's autumn original reference: Http://www.xiexingcun.com/mingjiaxiejing/302.htm

1. Yu Dafu pointed out the date in the inscription at the end of the article.

August 1934, in Peiping

But 1934 data I can not find, had to take 2004 years of substitution, the month locked in August (Gregorian reference to the period of the Republic of the people know the year of the year? )。

2.

But Ah, the autumn of the north, but particularly come to the clear, come quiet, come sad and dreary.

In the gray deepest of the sky, suddenly came a cool breeze, then the cable landed under the rain. A layer of rain, clouds gradually rolled to the West, the sky was green, the sun came out again, with a thick green cloth unlined or jiaao qu Urban idler

Jiangnan, autumn of course there are; but the grass wood is slow, the air comes to run, the color of days is pale, and often more rain and less wind; a person in Suzhou, Shanghai, Hangzhou, or Xiamen, Hong Kong, Guangzhou, the public, muddy chaos chaos past, can only feel a little cool, autumn flavor, autumn color, autumn mood and posture, total look not full, taste , not a full-on.

Autumn in Beijing: Cold, cool fast?

Autumn in Shanghai: cool, cool and slow?

 in[11]:bj=pd.read_csv ( " beijing2004  , Parse_dates=true,index_col= CST   "  12]:matplotlib.style.use ( " ggplot   " ) in[ 13]:bj=pd.read_csv ( '    ' in[ 14]:bj[ '  

For Beijing 2004 annual Air temperature map

For Shanghai 2004 annual Air Temperature map

The above two pictures are missing the January temperature information, but it can be clearly seen in Beijing and Shanghai summer temperature peaks almost identical, but Beijing's winter is 10 degrees lower than Shanghai, I posted the 2010 Beijing temperature map.

Beijing 2010 Annual Temperature graph

in[78]:bjmonth=bj['Mean Temperaturec'].groupby (bj.index.month). Mean () in[79]:shmonth=sh['Mean Temperaturec'].groupby (sh.index.month). Mean () in[80]:bjmonth.name='Beijing Mean'in[81]:shmonth.name='Shanghai Mean'in[82]:monthmean=pd.concat ([Bjmonth,shmonth],axis=1) in[83]:monthmean.plot (kind='Bar')

2004 Beijing Monthly Maximum minimum temperature comparison chart

The above two pictures can be seen, Beijing and Shanghai are in July when the temperature reached a peak, Beijing after the July half may be affected by cold air temperature will fall sharply once (Beijing 2014 annual temperature graph), July-August average temperature difference 10 degrees. August night the temperature is less than 20 degrees, and then consider that Beijing is not a industrialized city, the body sense of temperature will be lower.

Shanghai's maritime climate is more of a factor, even in the 12-January, the average temperature is less than 0 degrees, the temperature drop is also very stable. There will not be a layer of rain a layer of cool feeling.

The fall of Beijing can be completed from July to October, and the 2.5-month period is enough to impress people. Yu Dafu should also happen to catch up with a small cooling of about August.

Python Pandas Analysis of Yu Dafu's "Ancient Capital Autumn"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.