i am trying to read from some db2 schema all the tables and for those tables to get their columns so i can create dynamically insert into statement My data is stored in a list in this format: where tableName is the name of the table in my schema. So far i read from db catalog all tables and their
Using python 3.6 in new Anaconda Environment
I am creating a new anaconda environment(my first) in Anaconda Navigator. The libraries I intend to use require python 3.6 but from the python packages drop-down list(see screenshot below) I’m only seeing python 3.8. How can I install python 3.6 to anaconda so that it appears in the drop-down list? Answ…
How to add an attention layer to LSTM autoencoder built as sequential keras model in python?
So I want to build an autoencoder model for sequence data. I have started to build a sequential keras model in python and now I want to add an attention layer in the middle, but have no idea how to approach this. My model so far: So far I have tried to add an attention function copied from here and
Printing rows and columns from xml file in python using range function with len()
I have over 1000 rows imported via an xml file in python and I want to print every second row, starting at the first, to the 20th row from three selected tabs/columns but I can’t figure out how to put the range function into the print function of an xml file. See sample code below: ##importing xml file …
Return value in a python thread
I am new in Python and I want to get the value from a thread. I call the function logica in a thread and that function returns a value I want to know how can I get the value songs because I will use it later in an iter. Comand is a string. I am using the library threading Answer
Can’t locate image on python
I try to locate an image on my screen. But it always shows this – my code- Please help! Answer You can just try to reinstall pyautogui with all dependencies to make sure nothing missing:
How can I install two instances of python 2.7.18 with msiexec in Windows 10?
I have an instance of Python 2.7.18 in my computer with Windows 10 (located in C:Python27). Now, I want to install another instance of exactly the same Python to another location (for example, C:my_apppython27), but I have a problem with msiexec program. I have “python-2.7.18.amd64.msi” installer …
Set line widths according to column for seaborn FacetGrid with lineplot
I would like to pick out a certain line in each lineplot in a FacetGrid, to highlight the “default” setting compared to the other options. I’ve tried to make a minimal example based on this random walk example in the seaborn documentation This gives me faceted line plots with all lines the s…
Python http requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
I’m writing a chat program. Each of my clients has an open get request to the server in a separate thread (and another thread for posting their own messages). I don’t want to have a lot of overhead. That is, clients don’t send get requests frequently to see if there have been any unseen mess…
How to fix ” AttributeError: ‘int’ object has no attribute ‘replace’ ” while replacing and writing to a new file?
I have a hello.py file which asks user for their name and prints them a welcome message. This is the content of my hello-name.txt file My Question When run hello.py it asks user for their Name and as soon as the name is entered, Python gives the following error : Kindly help me to fix this issue. Thank You An…