This essay focuses on applications oriented toward data processing. the term data is often distinguished rename the ship types to “types”, construction years
Since the variable names of this dataset are rather. It is short and do not really describe the nature of the variables,. The Data has meaning beyond its use in computing applications. It is orient toward data processing. For example, in electronic. The component interconnection and network communication, the term data is often. It is distinguish rename the ship types.
This to “types”, construction years to “c_years”, operation periods to “o_periods”, the aggregate months of service to “s_months”, and the number of incidents to “incidents”. (iii) For better understanding of the data, compute the average service . It is months and the average number of incidents for the cross-products of every category. It is in types and operation periods. The averages should be rounded to the nearest integers. Store the resulting table to an object named “shipgroup”. (iv) Replace the missing values in the variable “s_months” and “incidents” by the respective means of the other ships that share the same type AND the same operation period.
Add comments to elaborate your Python program as well. (v) Construct a Python program to save the target variable “incidents” in a pandas DataFrame named “Y”. (33 marks) (b) Except for the months of service and number of incidents, all the other variables, including “types”, “c_years”, and “o_periods” are actually nominal and not interval/ratio. (i) Perform an appropriate data type conversion for these variables so that they can be recognise as categorical variables.
details;
firstly, be sure
Secondly, be fast
thirdly, variables
further, be cautious
further, be great
Lastly, be creative
Lastly, be innovative