Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to append multiple <class 'str'> into a single List
Post: RE: How to append multiple <class 'str'> into a si...

(Jan-07-2021, 07:02 AM)bowlofred Wrote: In your loop where you're setting link_list, append it to a list that it outside the loop. You've created such a list on line 41. But line 41 is useless bec...
ahmedwaqas92 General Coding Help 2 469 Jan-07-2021, 08:17 AM
    Thread: How to append multiple <class 'str'> into a single List
Post: How to append multiple <class 'str'> into a single...

I have a variable called "link_list" that prints out multiple game-id URLs which I, using pythonic means, procured from a sports website. The terminal output looks something like this: print(link_lis...
ahmedwaqas92 General Coding Help 2 469 Jan-07-2021, 05:20 AM
    Thread: Get Value from List to Show in DataFrame Column
Post: RE: Get Value from List to Show in DataFrame Colum...

I have successfully solved this set by introducing a function which searches stings in the df using a list, that initially joins all the elements I would want to pass through the data frame and then r...
ahmedwaqas92 General Coding Help 1 633 Jun-22-2020, 08:24 AM
    Thread: Get Value from List to Show in DataFrame Column
Post: Get Value from List to Show in DataFrame Column

I have a dataframe with a little more than 15000 rows. I also have three lists (c_iddf, p_iddf, cr_iddf) that I converted from a .csv file, so all the lists have equal number of elements. The datafra...
ahmedwaqas92 General Coding Help 1 633 Jun-12-2020, 09:00 AM
    Thread: df.str.contains() Not Working
Post: RE: df.str.contains() Not Working

[Update] - Set is Solved. I realized that I just had to put * in front of each '\d' regex pattern in the below code. For anyone wanting to know the solution, below is the working code: if "1.4.25" i...
ahmedwaqas92 Data Science 1 1,075 Feb-05-2020, 06:51 AM
    Thread: df.str.contains() Not Working
Post: df.str.contains() Not Working

I have a if/else procedural code that is querying a data frame. I am passing a str.contains() command after the main (else) function, yet it only shows the 'tempdf' as an empty data frame - See below....
ahmedwaqas92 Data Science 1 1,075 Feb-05-2020, 04:50 AM
    Thread: Do Calculation between Rows based on Column values - Pandas Dataframe
Post: Do Calculation between Rows based on Column values...

Hello, I have a sharepoint list that I am importing in as a Pandas dataframe. The resulting code generates a df which looks something like below Task Name ...
ahmedwaqas92 General Coding Help 0 998 Jan-28-2020, 07:06 AM
    Thread: Python Error 'return self.attrs[key]' Need help!
Post: Python Error 'return self.attrs[key]' Need help!

Hello, I am writing a small web scraper for a dataset that is publically available. My code works as long I don't put conditional loop, but when I do so it gives me a "return self.attrs[key]" error. C...
ahmedwaqas92 General Coding Help 0 1,518 Oct-13-2019, 03:50 AM
    Thread: How to Find & Count String Patterns Between two Markers in a HTML file
Post: RE: How to Find & Count String Patterns Between tw...

(Aug-18-2019, 01:35 PM)ndc85430 Wrote: There's no question in your post, nor have you shown us what you've tried, but you can at least use Beautiful Soup to parse the HTML and extract the data you w...
ahmedwaqas92 General Coding Help 3 1,033 Aug-19-2019, 10:12 AM
    Thread: How to Find & Count String Patterns Between two Markers in a HTML file
Post: How to Find & Count String Patterns Between two Ma...

Hello, I have a HTML file from which I am trying to extract strings so that I can count them and then hopefully export the analysis of those results in the form of a table. My HTML file has many "&l...
ahmedwaqas92 General Coding Help 3 1,033 Aug-18-2019, 01:18 PM
    Thread: How to Caputre Data After Selenium Scroll
Post: RE: How to Caputre Data After Selenium Scroll

So after 3 odd weeks of trying to find some time, I finally managed to get this set completed. The code below does the following things: 1) Opens A Firefox Instance, 2) Scrolls to the End of the Page...
ahmedwaqas92 Web Scraping & Web Development 3 3,014 Aug-18-2019, 12:43 PM
    Thread: How to Caputre Data After Selenium Scroll
Post: RE: How to Caputre Data After Selenium Scroll

(Jul-30-2019, 09:07 PM)metulburr Wrote: This is a better method to scroll to the bottom. It automatically identified the end of the page instead of arbitrary scrolling (and much faster too). def scr...
ahmedwaqas92 Web Scraping & Web Development 3 3,014 Aug-05-2019, 02:08 PM
    Thread: How to Caputre Data After Selenium Scroll
Post: How to Caputre Data After Selenium Scroll

Hello I made a small python script that loads a website and then scrolls to the bottom of the page. I now would like to count all the instances in the page which have text ', no run,' and preferably ...
ahmedwaqas92 Web Scraping & Web Development 3 3,014 Jul-30-2019, 02:32 PM
    Thread: How to capture Single Column from Web Html Table?
Post: RE: How to capture Single Column from Web Html Tab...

(Jul-12-2019, 06:26 AM)perfringo Wrote: (Jul-11-2019, 05:12 AM)ahmedwaqas92 Wrote: I would most probably export them to a CSV file Link appears to be dead, so generic example how to write specific...
ahmedwaqas92 Web Scraping & Web Development 5 1,286 Jul-29-2019, 02:17 AM
    Thread: How to capture Single Column from Web Html Table?
Post: RE: How to capture Single Column from Web Html Tab...

(Jul-11-2019, 06:50 AM)perfringo Wrote: Is having table as pandas dataframe is ok? >>> df = pd.read_html('http://stats.espncricinfo.com/ci/engine/player/348144.htmlclass=3;template=results...
ahmedwaqas92 Web Scraping & Web Development 5 1,286 Jul-12-2019, 04:34 AM
    Thread: How to capture Single Column from Web Html Table?
Post: How to capture Single Column from Web Html Table?

Hello, I am trying to get complete values of three distinct columns from an online HTML table that has 13 columns in total. I have parsed the Html content using beautiful soup and can display the val...
ahmedwaqas92 Web Scraping & Web Development 5 1,286 Jul-11-2019, 05:12 AM

User Panel Messages

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