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
de459e13
Commit
de459e13
authored
8 months ago
by
rubegar
Browse files
Options
Downloads
Patches
Plain Diff
Delete peticiones.py
parent
859eb4fa
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
peticiones.py
+0
-19
0 additions, 19 deletions
peticiones.py
with
0 additions
and
19 deletions
peticiones.py
deleted
100644 → 0
+
0
−
19
View file @
859eb4fa
import
csv
from
collections
import
Counter
def
count_thread_names
(
csv_file
):
thread_names
=
[]
with
open
(
csv_file
,
'
r
'
)
as
file
:
reader
=
csv
.
DictReader
(
file
)
for
row
in
reader
:
thread_names
.
append
(
row
[
'
threadName
'
])
count
=
Counter
(
thread_names
)
with
open
(
'
peticiones2.csv
'
,
'
w
'
,
newline
=
''
)
as
file
:
writer
=
csv
.
writer
(
file
)
writer
.
writerow
([
'
threadName
'
,
'
numeroPeticiones
'
])
for
thread_name
,
count
in
sorted
(
count
.
items
(),
key
=
lambda
x
:
x
[
0
]):
writer
.
writerow
([
thread_name
,
count
])
count_thread_names
(
'
medidas2.csv
'
)
\ 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