View the step-by-step solution to:

##Step 1: Import your data set ##----------------------------------------------------------------------------- solarkwh =...


##Step 1: Import your data set

##-----------------------------------------------------------------------------

solarkwh = pd.read_csv('Solar_KWH.csv')




##Step 2: Calculate descriptive statistics 

##-----------------------------------------------------------------------------

print ('Descriptive Statistics - Step 2')

print ('')


print ('Mean')

print (solarkwh[['cityA']].mean())

print ('')


print ('Median')

print (solarkwh[['cityA']].median())

print ('')


print ('Mode')

print (solarkwh[['cityA']].mode())

print ('')


print ('Minimum')

print (solarkwh[['cityA']].min())

print ('')


print ('Maximum')

print (solarkwh[['cityA']].max())

print ('')


print ('Mean')

print (solarkwh[['cityA']].var())

print ('')


print ('Standard Deviation')

print (solarkwh[['cityA']].std())

print ('')


print ('Describe')

print (solarkwh[['cityA']].describe())

print ('')


print ('')


##Step 3: Calculate descriptive statistics

##-----------------------------------------------------------------------------

print ('Descriptive Statistics - Step 3')

print ('')


print ('Mean')

print (solarkwh[['cityB']].mean())

print ('')


print ('Median')

print (solarkwh[['cityB']].median())

print ('')


print ('Mode')

print (solarkwh[['cityB']].mode())

print ('')


print ('Minimum')

print (solarkwh[['cityB']].min())

print ('')


print ('Maximum')

print (solarkwh[['cityB']].max())

print ('')


print ('Mean')

print (solarkwh[['cityB']].var())

print ('')


print ('Standard Deviation')

print (solarkwh[['cityB']].std())

print ('')


print ('Describe')

print (solarkwh[['cityB']].describe())

print ('')


Why wont this code work?

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question