Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: URL DECODING
Post: RE: URL DECODING

Found the solution **biggrin** with only 2 lines of code import pandas as pd import urllib f=open('input_table.html','r') html = f.read() df = pd.read_html(html) df = df[0].applymap(str) df = df....
UnionSystems General Coding Help 5 4,386 Jan-02-2019, 05:28 PM
    Thread: URL DECODING
Post: RE: URL DECODING

I cannot change the data I am getting from the text file. So how can I urllib.parse.unquote(url)to all rows in a dataframe. I have tried df=df.apply(lambda x:urllib.unquote(x).decode('utf8'))But...
UnionSystems General Coding Help 5 4,386 Jan-02-2019, 03:55 AM
    Thread: URL DECODING
Post: RE: URL DECODING

Sorry I am a learner. What I want to do is convert data inside dataframe. So that %3Ch1%3EMy%20Heading%3C%2Fh1%3E becomes <h1>My Heading</h1>
UnionSystems General Coding Help 5 4,386 Jan-02-2019, 01:36 AM
    Thread: URL DECODING
Post: URL DECODING

This script reads a text file containing a HTML table, uses pandas to parse that table into a dataframe. Then writes that dataframe as a CSV to another text file. import pandas as pd f=open('input_...
UnionSystems General Coding Help 5 4,386 Jan-01-2019, 11:04 PM

User Panel Messages

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