Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Move column to the right if it starts with a letter
Post: Move column to the right if it starts with a lette...

I want to move all columns to the right if my row starts with a letter, not a number. Dataframe that I have: var1 var2 var3 ... 9 3 3 4 4 3 ABC 5Dataframe that I want: var1...
mfernandes General Coding Help 0 682 Oct-25-2022, 11:22 AM
    Thread: Several xml files to dataframe
Post: RE: Several xml files to dataframe

Thank you for your suggestion, but I already tried pd.read_xml(xml), I just obtain 3 columns: 'uid', 'day' and 'point'.
mfernandes General Coding Help 2 805 Sep-20-2022, 07:58 PM
    Thread: Several xml files to dataframe
Post: Several xml files to dataframe

I have several xml files that I want to transform into a dataframe. Each xml file should be in one row. Here is an example of a xml file: <?xml version='1.0' encoding='UTF-8'?> <compteRendu x...
mfernandes General Coding Help 2 805 Sep-20-2022, 03:46 PM
    Thread: Remove tag several xml files
Post: RE: Remove tag several xml files

Thank you for your suggestions. Here is a code that worked: import lxml from lxml.html.clean import Cleaner for filename in os.listdir(path): if filename.endswith('.xml'): tree = etree.pa...
mfernandes General Coding Help 5 3,863 Sep-19-2022, 09:33 PM
    Thread: Remove tag several xml files
Post: RE: Remove tag several xml files

Thank you for your suggestion. I forgot to mention that I want to remove the tag and the respective text. In the link that you mentioned, they want to remove the tag but not the text.
mfernandes General Coding Help 5 3,863 Sep-19-2022, 06:51 PM
    Thread: Remove tag several xml files
Post: Remove tag several xml files

Dear python users, I want to drop the same tag in several xml files in one folder. Here is a sample of one xml file: <?xml version='1.0' encoding='UTF-8'?> <compteRendu xmlns="http://schemas....
mfernandes General Coding Help 5 3,863 Sep-19-2022, 03:43 PM
    Thread: web scraping with <br> tag
Post: web scraping with <br> tag

I am trying to web scrape the following webpage: https://www.assemblee-nationale.fr/12/cr...#TopOfPage . I would like to obtain the following dataset in the end: name speech M...
mfernandes Web Scraping & Web Development 1 2,079 Sep-14-2022, 05:39 PM
    Thread: Several pdf files to text
Post: RE: Several pdf files to text

Thank you all for your suggestions and time. I apologize, but I only had now availability to answer. deanhystad, about "Your code then goes to the trouble of creating a bunch of temporary files just t...
mfernandes General Coding Help 10 5,849 Jul-07-2021, 08:14 PM
    Thread: Several pdf files to text
Post: RE: Several pdf files to text

Thank you deanhystad for your suggestions. Yes, I have code that it works for 1 file, but I do not know how to convert the code for all pdfs (the 1st code that I posted was my attempt from jumping to ...
mfernandes General Coding Help 10 5,849 Jul-06-2021, 06:38 PM
    Thread: Several pdf files to text
Post: RE: Several pdf files to text

Thank you Pedroski55 for your code. I tried to run it and python responds with "/a/path", so I inserted the name of a random pdf that is in that file, and I obtained the following error: -------------...
mfernandes General Coding Help 10 5,849 Jul-06-2021, 11:10 AM
    Thread: Several pdf files to text
Post: RE: Several pdf files to text

I apologize, but I only noticed after posting that this thread was published on "Code sharing" when my intention was in "General coding help". Please delete it.
mfernandes General Coding Help 10 5,849 Jul-05-2021, 09:02 PM
    Thread: Several pdf files to text
Post: Several pdf files to text

Dear Python community, I have several pdf files in a folder and I would like to convert all of them into text file. In this link it is explained how to prepare the code for one pdf file: https://www.g...
mfernandes General Coding Help 10 5,849 Jul-05-2021, 08:56 PM
    Thread: pdfminer to csv
Post: RE: pdfminer to csv

Lar60+, thank you for your comment. I apologize but I couldn't already figure out a complete solution for my code. The problem is that I am in a very begginer stage. I tried to have a 2nd look to csv....
mfernandes General Coding Help 2 2,835 Jun-16-2021, 10:54 AM
    Thread: pdfminer to csv
Post: pdfminer to csv

Dear Python users, I am currently learning python and using python 3 version. I am trying to convert several pdf files into 1 csv file. pdfminer seems to be the best package for converting pdfs. Here ...
mfernandes General Coding Help 2 2,835 Jun-15-2021, 06:22 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020