Project Details

CrucePlanoEps.py funtion CrucePlanoEps()

September 30th 2022

"Using the datetime library, I get the current date in the format ""yyyy-mm-dd"". Through the library, the dynamic route for Pendientes_Archivo_EPS.txt and Archivo_Plano_EPS.txt is generated. The Pandas library is used to read text files, specifying that the separator is '|' and that the encoding is 'Latin-1'. Records containing ""SI"" are then selected in the ""shared users"" column of the drawing, and prefixed to the resulting DataFrame, naming it df_siplano. Subsequently, a cross-check is made in the ""Authorization number"" column between the selected ""SI"" and EPS records. Only the ""Pendientes_Archivo_EPS"" columns are retained, and the DataFrame is saved in a text file with '|' separator and 'Latin-1' encoding. The function returns a value of 2 if executed successfully. Otherwise, it returns the error line along with the corresponding error message." librarys: sys, pandas, datetime, os

CrucePlanoEps.py funtion CrucePlanoEps()