Skip to content
Snippets Groups Projects
Commit 21b8ab65 authored by rubegar's avatar rubegar
Browse files

Delete dividir.py

parent 35f12316
No related branches found
No related tags found
No related merge requests found
import pandas as pd
def dividir_columnas(file_path):
# Leer el archivo CSV en un DataFrame de Pandas
df = pd.read_csv(file_path)
# Dividir las columnas "numeroPeticionesGrande" y "numeroPeticionesPequeña" entre 211
df['numeroPeticionesGrande_div'] = df['numeroPeticionesGrande'] / 211
df['numeroPeticionesPequeña_div'] = df['numeroPeticionesPequeña'] / 211
# Guardar el DataFrame modificado en un nuevo archivo CSV
new_file_path = "productividad.csv"
df.to_csv(new_file_path, index=False)
# Ejemplo de uso
file_path = 'peticiones_juntos.csv'
dividir_columnas(file_path)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment