DOMMETI commited on
Commit
4912b7a
·
verified ·
1 Parent(s): 2cf24ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -144,8 +144,8 @@ st.subheader("Mean",divider=True)
144
  st.markdown("""
145
  Mean is one of the beautiful measurement of central tendency it invovles all the data present in it.The only drawback of mean is it is
146
  effected by outliers.Based on the data we will compute the mean in three types""")
147
- st.subheader("Arthamatic Mean",divider=True)
148
- st.markdown("""Arthamatic Mean is used on data which have \n * Interval and Ratio Data \n * Symmetric Distributions \n * Data Without Outliers
149
  """)
150
  st.subheader("Population Mean Formula")
151
  st.latex(r'''
@@ -158,7 +158,7 @@ st.latex(r'''
158
  def arthamatic_mean(list1):
159
  sum=reduce(lambda x,y: x+y,list1)
160
  return sum/len(list1)
161
- st.title("Calculate Arthamatic_Mean")
162
  numbers_input_2 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_2")
163
  if numbers_input_2:
164
  parts=numbers_input_2.split(",")
@@ -169,7 +169,7 @@ if numbers_input_2:
169
  list1.append(int(i))
170
  if list1:
171
  result=arthamatic_mean(list1)
172
- st.write("Arthamatic_Mean",result)
173
  else:
174
  st.write("No valid numbers provided.")
175
  st.subheader("Geometric Mean",divider=True)
@@ -186,7 +186,7 @@ st.latex(r'''
186
  def geometric_mean(list1):
187
  mul=reduce(lambda x,y: x*y,list1)
188
  return round(mul**(1/len(list1)),2)
189
- st.title("Calculate Arthamatic_Mean")
190
  numbers_input_3 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_3")
191
  if numbers_input_3:
192
  parts=numbers_input_3.split(",")
 
144
  st.markdown("""
145
  Mean is one of the beautiful measurement of central tendency it invovles all the data present in it.The only drawback of mean is it is
146
  effected by outliers.Based on the data we will compute the mean in three types""")
147
+ st.subheader("Arthmetic Mean",divider=True)
148
+ st.markdown("""Arthmetic Mean is used on data which have \n * Interval and Ratio Data \n * Symmetric Distributions \n * Data Without Outliers
149
  """)
150
  st.subheader("Population Mean Formula")
151
  st.latex(r'''
 
158
  def arthamatic_mean(list1):
159
  sum=reduce(lambda x,y: x+y,list1)
160
  return sum/len(list1)
161
+ st.title("Calculate Arthmetic_Mean")
162
  numbers_input_2 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_2")
163
  if numbers_input_2:
164
  parts=numbers_input_2.split(",")
 
169
  list1.append(int(i))
170
  if list1:
171
  result=arthamatic_mean(list1)
172
+ st.write("Arthmetic_Mean",result)
173
  else:
174
  st.write("No valid numbers provided.")
175
  st.subheader("Geometric Mean",divider=True)
 
186
  def geometric_mean(list1):
187
  mul=reduce(lambda x,y: x*y,list1)
188
  return round(mul**(1/len(list1)),2)
189
+ st.title("Calculate Geometric_Mean")
190
  numbers_input_3 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_3")
191
  if numbers_input_3:
192
  parts=numbers_input_3.split(",")