Creating Dataframe from series object

While creating data frame object while from series object why we can index using columns but not rows index .

df[‘Mass’] is working

but df[‘Earth’] is not

you can use iloc and loc function for row data