-1

I have 2 float numbers that are calculated from a csv file dataset.

value1 = 10.82500730353491
value2 = 4.057505093955173

Now I need to find the ratio of those two variables from the dataset I have.

Here is my current code that I used to extract the means. Now I need to find the ratio.

mean_buildingFire = dataset.loc[dataset['INCIDENT_TYPE_DESC'] == '111 - Building fire', 'UNITS_ONSCENE'].mean()
mean_smoke = dataset.loc[dataset['INCIDENT_TYPE_DESC'] == '651 - Smoke scare, odor of smoke', 'UNITS_ONSCENE'].mean()

print(mean_buildingFire)
print(mean_smoke)

My current output:

10.82500730353491
4.057505093955173

How do I find the ratio as whole numbers?

Vitalizzare
  • 4,496
  • 7
  • 13
  • 32

1 Answers1

1

(mean_buildingFire/mean_smoke).as_integer_ratio()