pd.date_range(starting_date, periods=6)

pd.Series([1,2,3,4,5,6], index=pd.date_range(starting_date, periods=6))

sample_series = pd.Series([1,2,3,4,5,6], index=pd.date_range(starting_date, periods=6))
sample_df_2['Extra Data'] = sample_series *3 +1
sample_df_2

"""
Explanation: Setting a new column automatically aligns the data by the indexes
End of explanation
"""


sample_df_2.at[dates_index[3],'Fruits'] = 'pear'
sample_df_2

"""
Explanation: Setting values by label
End of explanation
"""


sample_df_2.iat[3,2] = 4444
sample_df_2

"""
Explanation: Setting values by position
documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.iat.html
iat provides integer based lookups
End of explanation
"""


second_numpy_array = np.array(np.arange(len(sample_df_2)))  *100 + 7
second_numpy_array

sample_df_2['G'] = second_numpy_array
sample_df_2

"""
Explanation: Setting by assigning with a numpy array
End of explanation
"""


