Skip to main content

Questions tagged [python]

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

-4 votes
1 answer
28 views

I am new/weak in Python and am wanting to utilize the help of Chat GPT to do some of the initial heavy lifting. What are your thought/concerns? [closed]

I used to have a strong background in BASIC, Fortran, Visual Basic, and studied some C, C#, Visual C#, C++, Etc. But am weak in Java and Python. I would like to explore Python and other light ...
David Fetherston's user avatar
0 votes
0 answers
12 views

SEO Page Analysis Tool built in Python and Django

Objective: Develop an SEO analysis tool, for a website built in Django, that allows users to input a URL and receive an SEO report containing information about the page's optimization strengths and ...
user3605767's user avatar
1 vote
1 answer
15 views

Replace iterrow loops in pandas matrices with something else to shorten the running time

This post is modified from this one: https://codereview.stackexchange.com/posts/292885/edit (Alternatives to iterrow loops in python pandas dataframes). I have a piece of code to calculate price ...
Laura's user avatar
  • 51
4 votes
2 answers
72 views

Alternatives to iterrow loops in python pandas dataframes

I have a piece of code to calculate price sensitivity based on the product and its rating. Below is the original data set with product type, reported year, customer’s rating, price per unit, and ...
Laura's user avatar
  • 51
2 votes
1 answer
45 views

Time Series Forecasting

I'm currently working on a project involving time series analysis and have written the following code for the train-test split section. I'm particularly concerned about the correctness of the ...
Sabi's user avatar
  • 29
-3 votes
1 answer
55 views

Initializing an object using a staticmethod

I've an object that looks like this, and users have been populating the attributes post-initialization, e.g. ...
alvas's user avatar
  • 699
0 votes
2 answers
48 views

Feature subset selection using neural network

This listing selects the best features from the 1011 available columns in a given dataset. The first three columns are dropped because they are useless data. The dataset is huge. So, they were read in ...
user366312's user avatar
7 votes
2 answers
1k views

Beginner level password generator optimization

I've been learning python for a few days now, and I programmed this password generator after today's lesson (following the 100 days of code on udemy course). This code works like it should and gives ...
PSapola's user avatar
  • 73
-4 votes
0 answers
41 views

Solving genetic algorithm [closed]

I am new to programming, and I am hoping that I can get feedback on the code I wrote. I am currently using the code below and I hope that the results can be improved. ...
shalax's user avatar
  • 1
4 votes
2 answers
130 views

Excel sheet manipulation program

I'm very new to programming, and I'm hoping I can get feedback on the code I wrote - anything is helpful - what to split into different files (right now 1 large file), perhaps a way to break up the <...
Owlhunter1's user avatar
5 votes
3 answers
887 views

Optimizing Pi Estimation Code

I'm trying to write a program in Python that estimates pi, but to get a more accurate estimation in a feasible amount of time, I want to make it faster. I'm using a method that estimates the area of ...
Rhys Bradshaw's user avatar
2 votes
3 answers
136 views

Python Program Automatically Changing Mac Wallpaper to Nasa's Astronomy Picture of the Day

...
Astrovis's user avatar
  • 121
2 votes
3 answers
661 views

Capture multiple errors before raising an exception

I have a scenario where I need to store values from some environment variables (names of which I cannot control). My first run at this was pretty basic, however this is not usable as an exception ...
David Gard's user avatar
5 votes
8 answers
1k views

Reversing vowels in a string

Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper ...
user avatar
-4 votes
0 answers
42 views

Getting an error saying "android is not defined" [closed]

At the beggining of my code, I define android here: ...
anon1212's user avatar

15 30 50 per page
1
2 3 4 5
1036