<jupyter_start><jupyter_text><jupyter_code>from google.colab import files 
uploader=files.upload()<jupyter_output><empty_output><jupyter_text>Uploading The files<jupyter_code>##Importing necessary packages
import pandas as pd
import statistics 
import plotly.express as px

df=pd.read_csv("savings_data_final.csv")
df.head()
fig=px.scatter(df,y="quant_saved",color="rem_any")
fig.show()<jupyter_output><empty_output><jupyter_text>From the graph we see that the people who have been given reminder(Yellow dots) are saving less than the people who have not been given reminder(Blue dots).lets plot graph to see how many people were given reminder vs not given reminder.<jupyter_code>import csv 
with open("savings_data_final.csv",newline="") as f:
  reader=csv.reader(f)
  savings_data=list(reader)

savings_data.pop(0)

total_entries=len(savings_data)
total_people_given_reminder=0
for data in savings_data:
  if int(data[3])==1:
    total_people_given_reminder+=1

import plotly.graph_objects as go 
fig=go.Figure(go.Bar(x=["Reminded","Not Reminded"],y=[total_people_given_reminder,(total_entries-total_people_given_reminder)]))
fig.show()<jupyter_output><empty_output><jupyter_text>The person who have been given reminder were 8393 and the ones who have not beenreminded are 5267.<jupyter_code>all_savings=[]
for data in savings_data:
  all_savings.append(float(data[0]))

reminded_savings=[]
not_reminded_savings=[]
for data in savings_data:
  if int(data[3])==1:
    reminded_savings.append(float(data[0]))
  else:
    not_reminded_savings.append(float(data[0]))

print(f"mean of savings = {statistics.mean(all_savings)}")
print(f"median of savings = {statistics.median(all_savings)}")
print(f"mode of savings = {statistics.mode(all_savings)}")
print(f"standard deviation of savings = {statistics.stdev(all_savings)}")
print(f"standard deviation of people who were reminded = {statistics.stdev(reminded_savings)}")
print(f"standard deviation of people who were not reminded = {statistics.stdev(not_reminded_savings)}")<jupyter_output>mean of savings = 85.32780331328739
median of savings = 39.2724
mode of savings = 0.0
standard deviation of savings = 196.75453011909315
standard deviation of people who were reminded = 173.24866414440817
standard deviation of people who were not reminded = 228.875050299707
{'fraction_non_alphanumeric': 0.10601471224578105, 'fraction_numerical': 0.039376893119861534, 'mean_word_length': 7.659176029962547, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '304677', 'license': 'MIT', 'n_tokens_mistral': 869, 'n_tokens_neox': 790, 'n_words': 187, 'path': 'Project_C112.ipynb', 'repo_name': 'Yuwin2008/Data-Story-1', 'size': '2311'}