Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Same Data Showing Several Times With Beautifulsoup Query
Post: RE: Same Data Showing Several Times With Beautiful...
Many thanks for that Code Larz60+, its very much appreciated by me, thankyou for taking the time to type it. I chose
the web.archive link, because the Data is from a week ago, from that Website, the 2... |
|
eddywinch82 |
General Coding Help |
2 |
1,246 |
May-29-2022, 11:46 PM |
|
|
Thread: Same Data Showing Several Times With Beautifulsoup Query
Post: Same Data Showing Several Times With Beautifulsoup...
Hi there,
I have the following Python Code :-
import pandas as pd
import requests
import numpy as np
from bs4 import BeautifulSoup
import xlrd
import re
pd.set_option('display.max_rows', 500)
pd.se... |
|
eddywinch82 |
General Coding Help |
2 |
1,246 |
May-29-2022, 07:06 PM |
|
|
Thread: Regex Expression With Code Query In Pandas
Post: RE: Regex Expression With Code Query In Pandas
Hi snippsat,
Here is the amended Code, that now includes the September Rows, in the DataFrame Output :-
import pandas as pd
import requests
from bs4 import BeautifulSoup
import xlrd
pd.set_option('... |
|
eddywinch82 |
General Coding Help |
8 |
2,340 |
Apr-12-2022, 08:25 PM |
|
|
Thread: Regex Expression With Code Query In Pandas
Post: RE: Regex Expression With Code Query In Pandas
Hi snippsat,
I finally sorted out the issue I was having, I am busy at the moment, but I will tell you how I sorted it out later.
Regards
Eddie Winch **smile** |
|
eddywinch82 |
General Coding Help |
8 |
2,340 |
Apr-12-2022, 11:50 AM |
|
|
Thread: Regex Expression With Code Query In Pandas
Post: RE: Regex Expression With Code Query In Pandas
Hi snippsat,
Many thanks for your excellent Notebook example, certainly a good and more straightforward way, of sorting the Scraped Website Data.
Do you have any ideas, why the September rows are not... |
|
eddywinch82 |
General Coding Help |
8 |
2,340 |
Apr-11-2022, 10:21 PM |
|
|
Thread: Regex Expression With Code Query In Pandas
Post: RE: Regex Expression With Code Query In Pandas
Hi snippsat,
Many thanks for your reply to my Thread.
Here is the full Python Code :-
import pandas as pd
import requests
from bs4 import BeautifulSoup
import xlrd
pd.set_option('display.max_rows'... |
|
eddywinch82 |
General Coding Help |
8 |
2,340 |
Apr-10-2022, 11:14 PM |
|
|
Thread: Regex Expression With Code Query In Pandas
Post: Regex Expression With Code Query In Pandas
Hi there,
I have the following Part of a Python Code in Pandas :-
for i,row in temp_df.iterrows():
text = row[1]
text=text.replace('th','')
text=text.replace('st','')
text=text.repla... |
|
eddywinch82 |
General Coding Help |
8 |
2,340 |
Apr-08-2022, 09:10 PM |
|
|
Thread: TypeError: sequence item 0: expected str instance, float found Error Query
Post: RE: TypeError: sequence item 0: expected str insta...
Here is the rest of the Code :-
import pandas as pd
pd.chained_assignment=None
data = pd.read_csv(r'C:\Users\Admin\Desktop\BBMF2011.csv')
pd.options.display.max_rows = 1000
pd.opt... |
|
eddywinch82 |
General Coding Help |
1 |
5,114 |
Sep-04-2021, 09:16 PM |
|
|
Thread: TypeError: sequence item 0: expected str instance, float found Error Query
Post: TypeError: sequence item 0: expected str instance,...
Hi there,
I have the following, first part of a Python Pandas Code :-
import pandas as pd
pd.chained_assignment=None
data = pd.read_csv(r'C:\Users\Admin\Desktop\BBMF2011.csv')
pd.op... |
|
eddywinch82 |
General Coding Help |
1 |
5,114 |
Sep-04-2021, 08:50 PM |
|
|
Thread: Change row values by other row values from same df
Post: RE: Change row values by other row values from sam...
Hi there,
If I replace '==' with '&' in these two lines of my Code,
The desired DataFrame Output is now achieved :-
df['date'].str.contains('Sep|Oct') == df['x'].str.contains('Sep'), df['date'... |
|
eddywinch82 |
Data Science |
3 |
2,346 |
Aug-28-2021, 10:15 PM |
|
|
Thread: Change row values by other row values from same df
Post: RE: Change row values by other row values from sam...
Hi JosepMaria,
Here is a method, to help you get a solution, I havn't got it quite right yet, but one way, is that you can use Numpy select with conditions.
I hope this helps you.
Could someone clea... |
|
eddywinch82 |
Data Science |
3 |
2,346 |
Aug-26-2021, 08:17 PM |
|
|
Thread: Extracting Graphics From A Dos Game Job
Post: RE: Extracting Graphics From A Dos Game Job
(Aug-13-2021, 01:28 PM)jamesaarr Wrote: Hello,
There are converter tools out there, but looking into this a bit more, I don't think you can re-insert the picture using Python.
But keep looking, yo... |
|
eddywinch82 |
Jobs |
6 |
4,347 |
Aug-14-2021, 11:20 AM |
|
|
Thread: Extracting Graphics From A Dos Game Job
Post: RE: Extracting Graphics From A Dos Game Job
Hi jamesaarr,
Yes your help is very much appreciated, Yes the ideas you have put forward, have been very helpful and useful.
Yes cutting out images, and opening in photoshop etc, is an good idea.
B... |
|
eddywinch82 |
Jobs |
6 |
4,347 |
Aug-13-2021, 01:21 PM |
|
|
Thread: Extracting Graphics From A Dos Game Job
Post: RE: Extracting Graphics From A Dos Game Job
Hi jamesaarr,
Many thanks for your useful replies to my Thread, I can't find an example of, the type of image,
I wan't, from the internet. I think the .PAC extension, might be an Hi res Image Atari G... |
|
eddywinch82 |
Jobs |
6 |
4,347 |
Aug-13-2021, 10:53 AM |
|
|
Thread: Extracting Graphics From A Dos Game Job
Post: Extracting Graphics From A Dos Game Job
Hi there,
I have a Coding Job I need doing, I would like to extract, External WWII Aircraft Graphics, from a DOS game called
Secret Weapons Of The Luftwaffe. The File extension is .PAC. Initially I w... |
|
eddywinch82 |
Jobs |
6 |
4,347 |
Aug-12-2021, 12:02 PM |
|
|
Thread: Nested Conditionals
Post: RE: Nested Conditionals
Hi shen123,
the following worked for me, is this the type of thing, you were thinking of ? :-
animal = ['Lion', 'Zebra', 'Warthog', 'Elephant', 'Tiger', 'Hyena']
animal = 'Warthog'
if animal == 'L... |
|
eddywinch82 |
General Coding Help |
3 |
2,631 |
Jul-27-2021, 10:45 PM |
|
|
Thread: Partial Matching Rows In Pandas DataFrame Query
Post: RE: Partial Matching Rows In Pandas DataFrame Quer...
I have modified that part of the Code, to the following :-
remove=[]
for i,row1 in final_df_.iterrows():
loc = row1[0] and row1[0][:4]
#loc = row1[0] and row1[0][-4:]
date = row1[1]
fo... |
|
eddywinch82 |
General Coding Help |
1 |
2,369 |
Jul-08-2021, 06:32 PM |
|
|
Thread: Partial Matching Rows In Pandas DataFrame Query
Post: Partial Matching Rows In Pandas DataFrame Query
Hi there,
I have the following Part of a Python Code, which deletes DataFrame Rows from the last three Urls, if there is matching Data in the first 3 Website Urls,
DataFrame Output. However in certai... |
|
eddywinch82 |
General Coding Help |
1 |
2,369 |
Jul-08-2021, 02:35 PM |
|
|
Thread: Pandas datetime: add timedelta
Post: RE: Pandas datetime: add timedelta
Hi ju21878436312,
I am glad, you have found an solution, to the issue you were having with your Python Code, I am sorry my suggestions didn't work for you.
Best Regards
Eddie Winch **smile** |
|
eddywinch82 |
Data Science |
3 |
6,767 |
Jul-05-2021, 06:16 PM |
|
|
Thread: Want to remove the text from a particular column in excel
Post: RE: Want to remove the text from a particular colu...
Hi shantanu97,
The following, is an alternative simpler method than Larz60+'s, it worked for me :-
import pandas as pd
import re
data = pd.read_csv("magnetic_declination_australia_1.csv")
#print(d... |
|
eddywinch82 |
General Coding Help |
2 |
2,144 |
Jul-05-2021, 05:42 PM |