Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jsonfull
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohammed.shibili
jsonfull
Commits
3eeb0975
Commit
3eeb0975
authored
Jan 20, 2023
by
Mohammed Shibili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
completed
parent
fdd2a0a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
script/core/handlers/full_name.py
+2
-0
script/servieces/panda_operations.py
+1
-0
No files found.
script/core/handlers/full_name.py
View file @
3eeb0975
...
...
@@ -9,11 +9,13 @@ def adding():
i
=
1
new_dataframe
=
pd
.
DataFrame
(
columns
=
head_of_new_data
)
for
chunks
in
data_frame
:
# finding fullname by adding two columns
chunks
[
'full_name'
]
=
chunks
[
'first_name'
]
+
chunks
[
'last_name'
]
while
i
>
0
:
head_of_new_data
.
append
(
chunks
.
head
(
0
))
i
=
i
-
1
new_dataframe
=
pd
.
concat
([
new_dataframe
,
chunks
])
# converting new data frame to csv
new_dataframe
.
to_csv
(
new_csv
,
index
=
False
)
...
...
script/servieces/panda_operations.py
View file @
3eeb0975
...
...
@@ -5,6 +5,7 @@ from script.core.handlers.locating import locate
def
read_pandas
():
adding
()
try
:
# accepting values for locating files
search_id
=
int
(
input
(
"enter the id to search"
))
row_start
=
int
(
input
(
"enter starting number of row"
))
row_end
=
int
(
input
(
"enter ending number of row"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment