Skip to content

Instantly share code, notes, and snippets.

Y. Yamamoto trycycle

Block or report user

Report or block trycycle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trycycle /
Last active Jan 10, 2018
Seaborn/Matplotlibで生成する画像にType 1のフォントを埋め込む
import matplotlib.pyplot as plt
plt.rcParams['ps.useafm'] = True
plt.rcParams['pdf.use14corefonts'] = True
plt.rcParams['text.usetex'] = True
trycycle /
Last active Dec 5, 2017
Cronbach alpha信頼性係数
import pandas as pd
def cronbach_alpha(dataframe, columns):
''' dataframe: pandas dataframe
columns: list of the dataframe column names
var_sum = 0
tmp_df = pd.DataFrame(index=dataframe.index, columns=['total'])
tmp_df = tmp_df.fillna(0)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Yusuke Yamamoto
# Email:
# URL:
# Licence: MIT License
# This code is a minor modification of o-tomox's code
# (
You can’t perform that action at this time.