Quantcast
Browsing all 14011 articles
Browse latest View live

I need to verify if the record is present in yjr temporary table...

I'm trying to create a feature to validate that the temporary table (TMP_BSF_BOOT_STRAP in my case) contains some data. But while trying to do it I've bumped into the following exception: File...

View Article


Cannot define a MLFLOW experiment

I want to use MLFlow to do some tracking but the code in the documentation's tutoriel doesn't work ?Here's the code :import mlflowfrom mlflow.models import infer_signatureimport pandas as pdfrom...

View Article


Retry Celery tasks with exponential back off

For a task like this:from celery.decorators import task@task()def add(x, y): if not x or not y: raise Exception("test error") return self.wait_until_server_responds(if it throws an exception and I want...

View Article

RAG model not reading json files

I'm trying to implement a simple rag that reads a list of input files and answers to questions based on their content:documents = SimpleDirectoryReader("/content/Data/").load_data()llm = LlamaCPP(...

View Article

Is there a way to use a method/function as an expression for .loc() in pandas?

I've been going crazy trying to figure this out. I'm trying to avoid using df.iterrows() to iterate through the rows of a dataframe, as it's quite time consuming and .loc() is better from what I've...

View Article


pyproject correct way to import parent

I am trying to follow the correct way to import files in python but I can't make it works.This is my project :import_test/├── foo│  ├── bar│  │  ├── bar.py│  │  ├── baz│  │  │  ├── baz.py│  │  │  └──...

View Article

Append To List just overwrites the current List

I have this snippet in my Keyword to store all ids in the test_id_list, but it doesn't seem to work as the latest test_id just overwrites the previous test_id, it does not add to the list.${test_id}...

View Article

Summing up cells value with openpyxl

I have an Excel sheet file called 'f1-results.xlsx' with tabs named by races (countries names): Australia, China, Bahrain, Russia etc. Every tab contains standings in the following...

View Article


NetworkX Not Saving Node Attributes

I am reading an edge list from a file, and then from a different file I am reading an attribute called "date" which exists for some nodes. Note that some nodes in the edge list file do NOT have the...

View Article


How to find img in main tag if main exist using beautifulsoup?

I want to know how to find all images in main tag if main tag exist ? except just find images that's in out of tag (I want to make an order to scrape images in main tag if exist and if there is no main...

View Article

import error of comtypes in linux whil using pyttsx3 module

I am having an issue in the pyttsx3 module while using it in linux(raspberrian).When I use the module it gives an error in the following line:engine = pyttsx3.init('sapi5')the error is: self._module =...

View Article

Why and when to use a new anaconda environment? (One environment for...

I have a little bit of experience using Anaconda and am about to transition to using it much more, for all of my Python data work. Before embarking on this I have what feels like a simple question:...

View Article

Scraping Yelp, but 503 Service Unavailable

I would like to scrape the restaurant and its popular dishes on Yelp.At the begining, I was scraping Yelp with scrapy smoothly. But after a while, it pops up the error message of 503 Service...

View Article


Cuda out of memory when running pretrained model

I am new to the world of pytorch and I used searches and a couple of other source to get rid of the CUDA memory error without luck, perhaps anyone here has a solution.I have the following code and want...

View Article

matplotlib is no running in VS

I am practicing matplotlib. I am using the following code:import matplotlib.pyplot as plt y = [1,2,3,4,5] x = [10,12,5,8,3] plt.plot(x,y) plt.title('Line Chart') plt.xlabel('x-axis')...

View Article


SQL PYTHON SERVICES ERROR : ATTRIBUTEERROR: MODULE 'CRYPTOGRAPHY.UTILS' HAS...

At work, we use SQL Server 2019 which while setting up we included the SQL server Machine learning service so that we can run python script through our SSMS. We use the python script to import data...

View Article

error with seaborn scatterplot, too many positional arguments

plt.figure(dpi = 140)sns.kdeplot(churn_age, fill = True)sns.scatterplot( [mean], [0], color='red', label='mean')sns.scatterplot( [median], [0], color='green', label='median')sns.lineplot( stdev, [0,0],...

View Article


AWS CDK Lambda Layer Python Package

Currently when I create a Python Lambda Layer using the following CDK code:_lambda.LayerVersion( self,"CommonPythonLambdaLayer", code=_lambda.Code.from_asset("src/common", bundling=cdk.BundlingOptions(...

View Article

Azure Speech to text 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND)

I've been trying to start a project involving azure speech to text and for testing purpose wanted to corroborate the workings with the demo code found in this...

View Article

Replacing "_" in Hangman Game with a Player Guess for All Matches

I'm getting started with coding and I tried to programm "Hangman". Now I figured most of the stuff on my own, but I'm struggling with this one.I want to save multiple indexes, so that i can replace "_"...

View Article
Browsing all 14011 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>