ProyectoVision commited on
Commit
28cb1b5
·
1 Parent(s): a4b5bc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -81,11 +81,15 @@ def cargar_dataframe_1(eleccion):
81
 
82
  print(contador)
83
 
 
 
 
 
84
  # Add a new column "Uds" with the values from contador
85
- nuevo_df['Uds'] = pd.Series(contador)
86
 
87
  # Add a new column "Multiplicacion" as the product of "Kcal" and "Uds"
88
- nuevo_df['Multiplicacion'] = nuevo_df['Kcal'] * nuevo_df['Uds']
89
 
90
  # Obtener las kcal multiplicadas por la cantidad correspondiente en la columna de Uds
91
  #nuevo_df['Kcal'] = nuevo_df['Uds'] * nuevo_df['Kcal']
 
81
 
82
  print(contador)
83
 
84
+ nuevo_df.loc[:, 'Uds'] = pd.Series(contador)
85
+ nuevo_df.loc[:, 'Multiplicacion'] = nuevo_df['Kcal'] * nuevo_df['Uds']
86
+
87
+
88
  # Add a new column "Uds" with the values from contador
89
+ #nuevo_df['Uds'] = pd.Series(contador)
90
 
91
  # Add a new column "Multiplicacion" as the product of "Kcal" and "Uds"
92
+ #nuevo_df['Multiplicacion'] = nuevo_df['Kcal'] * nuevo_df['Uds']
93
 
94
  # Obtener las kcal multiplicadas por la cantidad correspondiente en la columna de Uds
95
  #nuevo_df['Kcal'] = nuevo_df['Uds'] * nuevo_df['Kcal']