Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
P1_ESI_RubenGarciaVazquez
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
rubegar
P1_ESI_RubenGarciaVazquez
Commits
4461e64a
Commit
4461e64a
authored
8 months ago
by
rubegar
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
2c40df1a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
juntar.py
+14
-0
14 additions, 0 deletions
juntar.py
with
14 additions
and
0 deletions
juntar.py
0 → 100644
+
14
−
0
View file @
4461e64a
import
pandas
as
pd
# Leer el primer archivo CSV
df1
=
pd
.
read_csv
(
'
medGrande.csv
'
)
# Leer el segundo archivo CSV
df2
=
pd
.
read_csv
(
'
medPeque.csv
'
)
# Combinar las columnas
df_final
=
pd
.
concat
([
df1
,
df2
],
axis
=
1
)
df
=
df_final
.
drop
(
'
threadNames
'
,
axis
=
1
)
# Guardar el DataFrame resultante en un nuevo archivo CSV
df
.
to_csv
(
'
medidas_juntos.csv
'
,
index
=
False
)
\ No newline at end of file
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