Help us understand the problem. What is going on with this article?

台風の総数をグラフ化

More than 1 year has passed since last update.

概要

気象庁のHPで過去の台風発生数がまとめてあるcsvファイルを見つけたので
総数をグラフで表してみる。

hr.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import csv
import math
import numpy as np
import sys, os
from matplotlib import pyplot

listage = []
listnum = []

with open('generation.csv', 'r',encoding='cp932') as f:
    reader = csv.reader(f)
    header = next(reader)  # ヘッダーを読み飛ばしたい時

    for row in reader:
        listage.append(row[0])
        listnum.append(row[13])
x = listage
y = listnum
pyplot.plot(x, y,)
pyplot.xticks([1960,1970,1980,1990,2000,2010], ["1960","1970","1980","1990","2000","2010"])
pyplot.xlabel("Year")
pyplot.show()

結果

ダウンロード.png

よく分からなかった

参照

気象庁:台風の発生数

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away