Results for python
I have a Pandas Series with the names of cities and districts: London:Alpha London London:Beta London:Delta Paris I want to add "_sub" at the end of e...
This is the code: from sqlalchemy.orm import declarative_base, relationship from sqlalchemy import Column, String, Integer, ForeignKey Base = declara...
my table user_info as follow: class UserInfo(Base): __tablename__ = 'user_info' id = Column(INTEGER, primary_key=True) user_cod...
I'm using Partial method to pass 2 parameters which are not iterables, thus i shouldn't use that in the Map() function. I'm also using ThreadPoolExecu...
I am facing an issue with drawing triangle borders using Matplotlib in Python. I want to create a specific pattern, but I'm encountering unexpected b...
result=int(input()) photo = photo_ + result photo_1="https://i.imgur.com/9SUZgxM.png" photo_2="https://i.imgur.com/9SUZgxM.png" photo_3="https://i.img...
I want to put my code in exact one line, this is my code and it's working but I have no idea how can I use the input function in it : input_string = s...
I would like to be able to do this: >>> obj = Example('hi', 'hello') >>> obj.a 'hi' >>> obj....
I am trying to sort an array/list of non-negative integers in linear time. We also only keep the unique elements. Here is an example, Sort: [7, 7, 0, ...
I have a pandas dataframe: d = {'col1': ['Date1', 'Date1', 'Date1', 'Date2', 'Date2', ...
I am new to Python and notice the following error when using min(). import pandas as pd a = [1,2,3,4,5] print(min(20, pd.array(a)**2)) The code should...
I am a student programmer at college and I've only recently started coding in my own time. I have some basic knowledge on how to program but arrays ar...
I tried below code in tensorflow with different variations for a simple regression problem. I have synthesized data as y=10.0*x. One input and one out...
I want to reshape my dataset from this: Date Item A B 1 1 a1 b1 1 2 a2 b2 1 3 a3 b3 to this Date Letter Item 1 Item 2 Item 3 1...
I have followed the steps in Getting Started with PDF Extract API (Python) successfully. The required libraries have been installed in the virtual env...
Hello I am a beginner to python and selenium and I wanted to make a simple program that open google chrome. Am using PyCharm. This is the code: Code i...
I have the following issue with Polars's LazyFrame "Structs" (pl.struct) and "apply" (a.k.a. map_elements) in with_columns The idea here is trying to ...
I am using a workflow automation program called Alteryx. It has its own "Send Email" tool but it is inherently limited to 10mb attachments and I have ...
I have been playing with turtle and trying to draw a grid of squares along the x and y axis. I make use of a while loop to draw squares along the x ax...
I've renamed the chrome executable to rome.exe for experimenting purposes, and well, it doesn't open the webpage by driver.get() but it does open the ...
During the training of my neural network model, I used a Pytorch's data loader to accelerate the training of the model. But instead of using a fixed b...
I have a table with data for who viewed a page and who clicked on it. The following code gets me the pivot table below: # users who clicked, by hour a...
Could you please someone advice me why my function 'X = xdf[selected_features] ' does not work. I use Windows 11 and python 3.12. I get this error whe...
I try to do a FastAPI that trigger file downloading through the StreamingResponse() Class (see FastAPI page). It is actually ok for this part. My prob...
I am trying to install pycryptodome-3.19.0 and pycryptodomex-3.19.0 on Windows 11 and Python 3.10 in venv. Whl files were downloaded from pypi manuall...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?