Xg3-2-1-1

import pandas as pd

df = pd.read_csv('data1.csv')
df.head()

---------------------------------------------------------------

Xg3-2-1-2

import pandas as pd

df = pd.read_csv('data1.csv', index_col=0)
df.head()

---------------------------------------------------------------

Xg3-2-1-3

print(df.shape)
print(df.dtypes)

---------------------------------------------------------------

Xg3-2-1-4

df['Ŋw']

---------------------------------------------------------------

Xg3-2-1-5

df[['Ŋw','zN']]

---------------------------------------------------------------

Xg3-2-1-6

df[3:7]

---------------------------------------------------------------

df[:7]

---------------------------------------------------------------

df[7:]

---------------------------------------------------------------

df['A4':'A7']

---------------------------------------------------------------

Xg3-2-1-7

df.query('Ŋw=="Bw"')

---------------------------------------------------------------

df.iloc[:, 0]

---------------------------------------------------------------

Xg3-2-1-8

df['Ŋw'].value_counts()

---------------------------------------------------------------

Xg3-2-1-9

print(df['Ŋw'].unique())
print(df['Ŋw'].nunique())

---------------------------------------------------------------

Xg3-2-1-10

df.describe()

---------------------------------------------------------------

Xg3-2-1-11

df.corr()

---------------------------------------------------------------

Xg3-2-1-12

group = df.groupby('Ŋw')
print(group.mean())

---------------------------------------------------------------

Xg3-2-1-13

print(group.corr())

---------------------------------------------------------------

Xg3-2-1-14

group['ʐ'].mean()

---------------------------------------------------------------

Xg3-2-1-15

from matplotlib import rcParams

rcParams['font.family'] = 'sans-serif'
rcParams['font.sans-serif'] = ['Yu Gothic', 'Meiryo']

---------------------------------------------------------------

Xg3-2-1-16

df['ʐ'].plot.hist()

---------------------------------------------------------------

Xg3-2-1-17

group['ʐ'].mean().plot.bar()

---------------------------------------------------------------
