• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Text file lines to csv columns

Resolved: Text file lines to csv columns

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I m trying to transfer data from a text file to csv. My text file contains lots of rows delimited by /n.
My text file is like:
and so on, the structure is the same
I need the output to be a csv like this:
Hope I was clear enough:) Any ideas how to begin?:)

Answer:

Question is pretty hard to find the real problem. I made the code, but please tell me if your problem clearly exists.
df looks like this

If you have better answer, please add a comment about this, thank you!

csv extract pandas python text
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: navigate and redirect not redirecting to path in react router

24/03/2023

Resolved: Time Complexity: Find the number of people who know a secret leetcode 2327

24/03/2023

Resolved: Best way to create 3d matrix of variables in PULP

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.