title: Accessing Data from Python Pandas
body: <p>The below is a pandas basic assignment question.</p>
  <blockquote>
  <p>Create a series named heights_A with values 176.2, 158.4, 167.6,
  156.2, and 161.4. These values represent heights of 5 students of class A.</p>
  <p>Label each student as s1, s2, s3, s4, and s5.</p>
  <p>Create another series named weights_A with values 85.1, 90.2, 76.8,
  80.4, and 78.9. These values represent weights of 5 students of class A.</p>
  <p>Label each student as s1, s2, s3, s4, and s5.</p>
  <p>Create a dataframe named df_A, which holds the height and weight of
  five students s1, s2, s3, s4 and s5.</p>
  <p>Label the columns as Student_height and Student_weight, respectively.</p>
  <p>Select the column df_A referring to student heights, and store it in
  the variable height. Note: Specify the required column name inside
  square brackets.</p>
  <p>Print the type of object of the variable height.</p>
  </blockquote>
  <p>Tried with the below code till now, but the checker seems to think height data type is not correct.
  Not sure where is this being incorrect.</p>
  <pre><code>import pandas as pd
  import numpy as np
  
  
  
  heights_A =  pd.Series([176.2, 158.4, 167.6, 156.2, 161.4])
  
  heights_A.index = ['s1', 's2', 's3', 's4','s5']
  
  
  weights_A = pd.Series([85.1, 90.2, 76.8, 80.4 , 78.9])
  
  weights_A.index = ['s1', 's2', 's3', 's4','s5']
  
  
  
  df_A = pd.DataFrame()
  
  df_A['Student_height'] = heights_A
  
  df_A['Student_weight'] = weights_A
  
  height = df_A[['Student_height']]
  height.dtypes
  </code></pre>
  <p>Not sure what is incorrect with this height datatype part</p>