0% found this document useful (0 votes)
32 views1 page

Rainfall Impact on Sikkim Tourism

The document contains a Python script that uses pandas and matplotlib to analyze the relationship between monthly rainfall and the number of tourists in Sikkim. It creates a scatter plot to visualize this relationship and saves the plot as an image file. The data includes rainfall measurements and corresponding tourist numbers for each month of the year.

Uploaded by

cosmicgaming333
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Rainfall Impact on Sikkim Tourism

The document contains a Python script that uses pandas and matplotlib to analyze the relationship between monthly rainfall and the number of tourists in Sikkim. It creates a scatter plot to visualize this relationship and saves the plot as an image file. The data includes rainfall measurements and corresponding tourist numbers for each month of the year.

Uploaded by

cosmicgaming333
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

import pandas as pd

import [Link] as plt

months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
rainfall = [50, 40, 60, 80, 120, 300, 350, 320, 400, 200, 100, 60]
tourists = [5000, 5500, 6000, 7000, 8000, 9000, 8500, 8200, 7800, 7200, 6500, 5800]

data = [Link]({
'Month': months,
'Rainfall (mm)': rainfall,
'Number of Tourists': tourists
})

[Link](data['Rainfall (mm)'], data['Number of Tourists'], color='green')


[Link]('Rainfall vs Tourists in Sikkim')
[Link]('Rainfall (mm)')
[Link]('Number of Tourists')
[Link](True)
[Link]('rainfall_vs_tourists.png') # Saves the plot as an image file
[Link]()

You might also like