Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
adega
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Odair M.
adega
Commits
ddba920c
Commit
ddba920c
authored
7 years ago
by
Jomaro Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
limpando lixo
parent
2777be38
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
WIP: Development
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/script/.gitignore
+0
-6
0 additions, 6 deletions
src/script/.gitignore
src/script/base/dataframe_base.py
+2
-7
2 additions, 7 deletions
src/script/base/dataframe_base.py
with
2 additions
and
13 deletions
src/script/.gitignore
deleted
100644 → 0
+
0
−
6
View file @
2777be38
cache/*
*.json
*.xls
*.csv
script/base/*.xls
script/base/*.csv
This diff is collapsed.
Click to expand it.
src/script/base/dataframe_base.py
+
2
−
7
View file @
ddba920c
import
re
import
os
import
sys
import
pandas
as
pd
import
numpy
as
np
from
glob
import
glob
from
json
import
load
as
json_load
from
script.utils.situations
import
*
class
DataframeHolder
:
def
__init__
(
self
,
dataframe
):
self
.
students
=
dataframe
.
groupby
(
'
MATR_ALUNO
'
)
...
...
@@ -68,7 +64,6 @@ def fix_dataframes(dataframes):
fix_evasion
(
merged
)
fix_carga
(
merged
)
return
merged
...
...
@@ -79,6 +74,7 @@ def clean_history(df):
],
axis
=
1
,
inplace
=
True
)
df
[
'
PERIODO
'
]
=
df
[
'
PERIODO
'
].
str
.
split
(
'
o
'
).
str
[
0
]
def
clean_register
(
df
):
df_split
=
df
[
'
PERIODO_INGRESSO
'
].
str
.
split
(
'
/
'
)
df
[
'
ANO_INGRESSO
'
]
=
df_split
.
str
[
0
]
...
...
@@ -87,7 +83,6 @@ def clean_register(df):
df
[
'
ANO_EVASAO
'
]
=
df_split
.
str
[
0
]
df
[
'
SEMESTRE_EVASAO
'
]
=
df_split
.
str
[
1
].
str
.
split
(
'
o
'
).
str
[
0
]
df
.
drop
([
'
ID_PESSOA
'
,
'
NOME_PESSOA
'
,
'
DT_NASCIMENTO
'
,
'
NOME_UNIDADE
'
,
'
COD_CURSO
'
,
'
PERIODO_INGRESSO
'
,
'
PERIODO_EVASAO
'
],
axis
=
1
,
inplace
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment