Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Apache Module
Post: RE: Apache Module

Hallo, > I currently have Apache running Python via CGI, Really? CGI is pretty much outdated and hardly used since WSGI and the rise of WSGI-Frameworks, which started approx. 10 years ago. The CG...
noisefloor Web Scraping & Web Development 2 517 Jan-26-2024, 07:59 PM
    Thread: Append inside for?
Post: RE: Append inside for?

Hi, (Jan-13-2024, 07:14 PM)johnywhy Wrote: Oops! I have vs code set to tabs. I guess some spaces got in there by mistake.That's not the recommended best / common practice... Although Python accepts...
noisefloor General Coding Help 10 854 Jan-13-2024, 07:28 PM
    Thread: connect sql by python using txt. file
Post: RE: connect sql by python using txt. file

Hi, instead of using a text file, use another Python file and define the values for username etc. in there. Then import from there. Everything which is in object - which variables are - is importable...
noisefloor General Coding Help 2 443 Jan-12-2024, 08:11 PM
    Thread: Web Scraping with phyton or another option?
Post: RE: Web Scraping with phyton or another option?

This question is too wide-spread and not really clear. If you don't want to program yourself -> go and find freelancers or company who offer programming services and compare what they want to have ...
noisefloor Web Scraping & Web Development 1 607 Nov-12-2023, 11:06 AM
    Thread: How to scraping data from dinamic site
Post: RE: How to scraping data from dinamic site

Webscraping of commercial platforms is in many cases not wanted by the company running of the website and counter-measures are taken. Except this, the terms of usage may even forbid scraping. The best...
noisefloor Web Scraping & Web Development 2 696 Nov-08-2023, 12:13 PM
    Thread: What exactly does .agg() do?
Post: RE: What exactly does .agg() do?

And to answer (Nov-07-2023, 06:33 PM)Mark17 Wrote: However, when I tried .agg([min, max, sum, mean])), I get:The difference is the missing quotes in your code. Your code works if you write .agg(['...
noisefloor Data Science 5 1,092 Nov-08-2023, 07:01 AM
    Thread: What exactly does .agg() do?
Post: RE: What exactly does .agg() do?

The agg() method performs aggregation on the columns (or rows, but by default columns) of a dataframe. See Pandas documentation for details. Simple example: Create a dataframe with to columns and cal...
noisefloor Data Science 5 1,092 Nov-07-2023, 04:04 PM
    Thread: Does viber rest api allows me to add users to a viber group via api?
Post: RE: Does viber rest api allows me to add users to ...

Somehow the relation to Python is missing... do you have problems accessing the Viber API via Python? If so, please post your code you ran trying to access the API. In case you have general, language...
noisefloor Web Scraping & Web Development 1 96 Nov-07-2023, 03:44 PM
    Thread: Updating sharepoint excel file odd results
Post: RE: Updating sharepoint excel file odd results

I think this is not a Python problem at all. When we ran as MS Sharepoint back in the days, we could set permissions and workflows on a per-directory / folder base. E.g. anybody could upload a new re...
noisefloor General Coding Help 1 856 Nov-03-2023, 05:13 PM
    Thread: write to csv file problem
Post: RE: write to csv file problem

You need to set the mode for writing the file. The default is mode='w' which truncates the file prior to writing. You need to set mode='a' for append mode: ... new_data_file.to_csv("flight_data.csv",...
noisefloor General Coding Help 11 1,552 Nov-03-2023, 05:05 PM
    Thread: Calling functions by making part of their name with variable
Post: RE: Calling functions by making part of their name...

(Nov-02-2023, 10:59 AM)crouzilles Wrote: Double underscores mean these class methods are private and can only be called within that class or its instancesThat's wrong. Python doesn't know anything l...
noisefloor General Coding Help 4 851 Nov-02-2023, 12:25 PM
    Thread: Calling functions by making part of their name with variable
Post: RE: Calling functions by making part of their name...

Depending on what your __scroll_xx functions is doing, you may want to have only one function named "scroll" and provide te direction as an argument to the function. And what is the purpose of the do...
noisefloor General Coding Help 4 851 Nov-02-2023, 10:21 AM
    Thread: How to profile tornado web app ?
Post: RE: How to profile tornado web app ?

Probably because Tornado is not the most popular Python webframework on earth and there may be not too many people being active here at this board still using Tornado. Plus the original question lack...
noisefloor Web Scraping & Web Development 2 979 Oct-09-2023, 05:59 PM
    Thread: Answer for newbie, Sqlite3
Post: RE: Answer for newbie, Sqlite3

Hello, please post the full stack trace of the error you get so we can see where the error occurs. Regards, noisefloor
noisefloor Homework 2 864 Sep-27-2023, 05:33 PM
    Thread: HTML Decoder pandas dataframe column
Post: RE: HTML Decoder pandas dataframe column

Hi, the information provided is a bit thin... Is `response['data'] really HTML? I tried to make an API call with the URL from you post, but I receive a time-out error... What do you get instead when...
noisefloor Data Science 3 1,063 Sep-27-2023, 05:31 PM
    Thread: Why can't it extract the data from .txt well?
Post: RE: Why can't it extract the data from .txt well?

Hello, and the questions is...? It's missing in your original post. If something doesn't worl as you expect, please describe what doesn't work and what you get as a result. Regards, noisefloor
noisefloor General Coding Help 3 683 Aug-20-2023, 12:05 PM
    Thread: Plot time series data
Post: RE: Plot time series data

Hi, what to you mean by "shorten"? The code is already pretty short... If you like to get rid of one line, you can skip line 5 in your code and skip deleting the year, month, ... columns, as there no...
noisefloor Homework 3 1,329 Mar-04-2023, 04:22 PM
    Thread: Plot time series data
Post: RE: Plot time series data

Hi, if you combine the first six columns to one column holding a datetime object, plotting should be easy. Regards, noisefloor
noisefloor Homework 3 1,329 Mar-04-2023, 03:56 PM
    Thread: method call help
Post: RE: method call help

Hi, (Feb-19-2023, 07:24 PM)sollarriiii Wrote: I want to develop function pricing_intel() and pricing_mac(), which defines the price of each detail of employee who do , the price of intel material di...
noisefloor General Coding Help 6 1,172 Feb-21-2023, 03:19 AM
    Thread: Flask error sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint
Post: RE: Flask error sqlalchemy.exc.IntegrityError: (sq...

Hi, if the unique constrain fails it typcially means that there is already an entry with the exactly same title. As the title has to be unique, you cannot add another book with the same title. This w...
noisefloor Web Scraping & Web Development 2 3,713 Feb-21-2023, 03:13 AM

User Panel Messages

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