Skip to content

Instantly share code, notes, and snippets.

@rohanjoseph93
Last active December 20, 2018 06:59
Show Gist options
  • Save rohanjoseph93/a08cbe7c58eb50f422ae42f542d47091 to your computer and use it in GitHub Desktop.
Save rohanjoseph93/a08cbe7c58eb50f422ae42f542d47091 to your computer and use it in GitHub Desktop.
#import libraries
import pandas as pd
from scipy import stats
import os
os.chdir('C:\\Users\\rohan\\Documents\\Analytics\\Data')
#import file and apply one sample t test
a = pd.read_excel('onesamplet.xlsx')
stats.ttest_1samp(a,14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment