Python : name inner pair of values as null and when u have outer pair of...
i want to derive derive_this_column with help of duplicate_thype and lat_lng column.so what it does is it is finding the duplicate values of lat_lng and it defines first_duplicate and last_duplicate...
View ArticleCan jupyter kernekgateway print the 'code' that I commited to jupyter
I via ws mode to connect jupyter kernelgatewaylike this: ws:xxx:8888/api/kernels/%s/channels?sessionId=xxxxI commit the python code:import jsonparams = '{"abc":"123"}';try: index = params.index('"""')...
View ArticleHow to print Matrix by comparing two dates
I have an excel sheet and there are two columns which has values in "dd-mm-yyyy hh:mm" format i.e., DEP_DATE_TIME (Column F) and ARR_DATE_TIME (Column J). Row is having the same "dd-mm-yyyy hh:mm"...
View ArticleWindows Error PythonService was unable to locate the service manager
Currently experiencing this issue on my Windows machine when installing a Windows Service. This is the error output I get from running in the cmd as administrator. Restricting me from being able to run...
View ArticleHow to install tensorflow-gpu from anaconda?
I have run some very basic steps (tensorflow-gpu is currently at 2.12.1):conda create --name py311_tf212 python=3.11 numpy numba scipy spyder pandasconda activate py311_tf212time conda install -c...
View ArticleTokenize return letters instead of words
I try to tokenize my text following method in medium page below. After running the code, tokens returns are letters. Can you help to make it returns words instead?...
View ArticleThe Accuacy decreased after global aggregation in federated learning
I am working on a federated learning project. I write a code to stimulate the process of federated learning. However, after global aggregation in every iteration, the test accuracy of the global model...
View ArticleHow To Create Multiple Variables from Python List [duplicate]
x = ['John', "Mask", "Sabra, Baba, Dazi"]Is there any way i can create multiple variables from list like a = ("john") b = ("Mask") c= ("Sabra")how to use when we have 100s of names in list please help...
View Articlespark-nlp : DocumentAssembler initializing failing with...
I'm trying to use the john snow ESG model.And I keep getting the following error:Line document_assembler = DocumentAssembler().setInputCol('text').setOutputCol('document')Error...
View ArticleTensorflow model correct from specific range but wrong for rest
I am making a simple neural network using tensorflow.keras to predict the sin function. But the model is correct from -15 to 15, but is wrong on the rest.This is my script:import tensorflow as tffrom...
View ArticleI want to fill in the blank SAP IDs in the original data with the...
i have a dataframe like thisPno Sapid Qtyp1 c1 5p1 c1 3p1 c2 4p1 c2 5p1 c3 2p1 c3 1p1 p1 p1now i want to generate output as belowPno Sapid Qtyp1 c1 5p1 c1 3p1 c1 p1 c1 p1 c1 p1 c2 4p1 c2 5p1 c2 p1 c2...
View ArticleErrors while running DeepMind's publicly available code regarding their...
I am trying to re-produce DeepMind's recent result, in which they found new examples of mathematical objects using LLM's.I am trying to execute their publicly available code on GitHub. However, despite...
View ArticleHow to plot a table reflecting gene sequencing data qualitatively
I'm looking for ways to plot sequencing data like this:from Nature MedicineIt seems to be a common plot. I know there are ways to plot a table fill with colors but unable to think how to divide cells...
View ArticleUsing tracer delays the eventlistener response in turtle library, python
so I am trying to create a snake game using the turtle GUI library in python. However when I am using the tracer function of the turtle library and screen class for the smooth animations, my...
View ArticleHow do I check if a value exists and print that value if it does from a...
I am attempting to find the value of a particular key from within a dictionary that is itself within a list, and then print that value.iso3166_1 = [ {"name_en": "Afghanistan","name_fr": "Afghanistan...
View ArticleScrolling to the end of chat list in Whatsapp webpage using Selenium Python
I am trying to scroll down to the last contact in Whatsapp Webpage chat list using selenium python.I am receiving the following error message:selenium.common.exceptions.JavascriptException: Message:...
View ArticleFullbody Detection Using OpenCV Haar Cascades
I want to detect the full body of human within image using OpenCV fullbody Haar Cascades. Here's my code:import numpy as npimport cv2from matplotlib import pyplot as pltbodydetection =...
View ArticleMicrosoft VBScript compilation error: Unterminated string constant at (1,13)
I'm getting error (1, 13) Microsoft VBScript compilation error: Unterminated string constant. what is the mistake I have done, what is the mistake with the quotesvbscript="""if WScript.Arguments.Count...
View Articlestreamlit only updates dataframe after every second change using st.data_editor
I am trying to change the value in a column based on changes made by the user in a different column with st.data_editor, and want to do it live on change. But the following code only works after 2...
View Articlehow to fix the error when starting the program
at startup, the program opens the interface window, we set the entered parameters and when you click the calculation button, the interface window crashes and in the vs code terminal it gives an error:...
View Article