Answer:
import pandas as pd #importing pandas library as pd
import matplotlib.pyplot as plt #importing matplotlib.pyplot as plt
pop=pd.read_csv('nycHistPop.csv') #reading the csv file
borough=input('Enter borough name:') #asking the user for borough namme
# image=input('Enter image name:')
# pop['Fraction']=pop[borough]/pop['Total']
# pop.plot(x='Year', y='Fraction')
print("Minimum population",pop[borough].min()) #printing the minimum population of borough
print("Maximum population",pop[borough].max()) #printing the maximum population of borough
print("Average population",pop[borough].mean()) #printing the average population of borough
print("Standard deviation",pop[borough].std()) #printing the standard deviation of borough
# fig=plt.gcf()
# fig.savefig(image)
Explanation:
Answer:
Each pixel in an image is made up of binary numbers. If we say that 1 is black (or on) and 0 is white (or off), then a simple black and white picture can be created using binary. To create the picture, a grid can be set out and the squares coloured (1 – black and 0 – white).
You have to ask you teacher to show you which ones you got wrong and the answers to them.
Answer:
optical sensors
Explanation:
optical sensors measure the amount of gases like carbon dioxide and carbon monoxide in the air