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
trycycle / type-1-fonts.py
Last active Jan 10, 2018
Seaborn/Matplotlibで生成する画像にType 1のフォントを埋め込む
View type-1-fonts.py
import matplotlib.pyplot as plt
plt.rcParams['ps.useafm'] = True
plt.rcParams['pdf.use14corefonts'] = True
plt.rcParams['text.usetex'] = True
@trycycle
trycycle / cronbach.py
Last active Dec 5, 2017
Cronbach alpha信頼性係数
View cronbach.py
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)
View bing.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Yusuke Yamamoto
# Email: yusuke@hontolab.org
# URL: http://hontolab.org/
# Licence: MIT License
# This code is a minor modification of o-tomox's code
# (https://gist.github.com/o-tomox/6649758#file-bing_api-py)
You can’t perform that action at this time.