Commit aee0cea6 authored by Bruno Meyer's avatar Bruno Meyer
Browse files

funcionando pra csv tambem

parent 93c9c2c5
......@@ -48,13 +48,17 @@ def read_csv(path):
def fix_dataframes(dataframes):
for df in dataframes:
if df['name'] == 'historico.xls':
if df['name'] == 'historico.xls' or df['name'] == 'historico.csv':
history = df['dataframe']
if df['name'] == 'matricula.xls':
if df['name'] == 'matricula.xls' or df['name'] == 'matricula.csv':
register = df['dataframe']
#~ df.dropna(axis=0, how='all')
history["MEDIA_FINAL"] = pd.to_numeric(history["MEDIA_FINAL"], errors='coerce')
history = history[np.isfinite(history['MEDIA_FINAL'])]
merged = pd.merge(history, register, how='right', on=['MATR_ALUNO'])
#~ print(merged)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment