Author : MD TAREQ HASSAN

Population graph using Matplotlib

basic-analysis.ipynb

import pandas as pd
import matplotlib.pyplot as plt

# Prepare dataframe
df = pd.read_csv('../data/japan-population.csv')
x = df['year']
y = df['population']

# Plot graph
plt.title("Population of Japan")
plt.xlabel('Year')
plt.ylabel('Population')
plt.plot(x,y)

plt.show()

Value counts

import pandas as pd

df = pd.read_csv("olympics.csv", skiprows=4)

df.Edition.value_counts()

df.Gender.value_counts()