import pandas as pd
import csv
import statistics
import random
import plotly.figure_factory as ff

df = pd.read_csv("medium_data.csv")
dtat=df["temp"].tolist()

print("population mean:-" , statistics.mean(data))

def random_set_of_mean(counter):
  dataset = []
  for i in range(0, counter):
    random_index = random.random(0,len(data)-1))
    value=data[random_index]
    dataset.append(value)
  mean = statistics.mean(dataset)
  return mean
  
def show_fig(mean_list):
  df=mean_list
  fig=ff.create_distplot([df], ["temp"], show_hist=False)
  fig.show()
  
def setup():
  mean_list[]
  for i in range(0,100):
    set_of_means = randome-set_of_means(30)
    mean_list.append(set_of_means)
  show_fig(mean_list)
  print("sampling mean:-", statistics.mean(mean_list))

setup()
 
