Commit 333996a8 authored by Jomaro Rodrigues's avatar Jomaro Rodrigues
Browse files

primeiro problema arrumado

parent ff6aa6bb
......@@ -51,6 +51,7 @@ def fix_dataframes(dataframes):
history["MEDIA_FINAL"] = pd.to_numeric(history["MEDIA_FINAL"], errors='coerce')
history = history[np.isfinite(history['MEDIA_FINAL'])]
# FIXME: how='inner' só aceita caras que estejam nos dois relatórios
merged = pd.merge(history, register, how='right', on=['MATR_ALUNO'])
# ~ print(merged)
......@@ -61,10 +62,16 @@ def fix_dataframes(dataframes):
def clean_history(df):
], axis=1, inplace=True)
drop_columns = [x for x in drop_columns if x in df.columns]
df.drop(drop_columns, axis=1, inplace=True)
df['PERIODO'] = df['PERIODO'].str.split('o').str[0]
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