Quantcast
Browsing all 13951 articles
Browse latest View live

send a DSN (Non-delivery report) using the python email module

I'm trying to send a DSN (Delivery Status Notification, also known as a Non-Delivery Report) from python3 using the email module.A DSN is a MIME message with Content-Type: multipart/report;...

View Article


In Pandas module of python pandas.read_excel is not working

import pandas as pdpd.read_excel?Error: Object `pd.read_excel` not found.My xlrd package is updated. I couldn't find any solution to it. Please help!! I m doing it in ipython-notebook.

View Article


Specify browser for login

I am writing a python script to query something from graph. I am using MSAL for python to get the login and get the token. When using acquire_token_interactive the login prompt will redirect to my main...

View Article

DT LOTTERY is Lottery online

DT LOTTERY is Lottery online with Games is DT180 and DT300 From India LotteryA platform for those who want to have an additional income and a side job using just your small smartphone, and you can do...

View Article

Failed to launch app from custom SageMaker image: ResourceNotFoundError with...

I'm trying to create a custom SageMaker image and launch a kernel from it, because I want to see if I can use black, the python code formatter, in SageMaker Studio via a custom SageMaker image.So far,...

View Article


How to interpolate a slice in 2d non regular griddata?

I want to interpolate a slice (blue line) in 2d griddata (non-regular).Minimal Example. I want to interpolate the data of psi in that blue lineimport numpy as npimport matplotlib.pyplot as pltx =...

View Article

can i ask questions on stackoverflow with long code? [migrated]

Firstly, it's sorry that I'm not good at English well. So, there may be many problems related to grammar. I have a question before asking my real questions.Q. Can I ask a question on stackoverflow with...

View Article

Python Azure Function expecting System.Net.Http.Formatting

I have a Python Azure Function (V2 model) and work with Visual Studio Code, using Python 3.9 as an interpreter, also have 3.12 installed, but FA starts only with the Python 3.9 version.While running...

View Article


Python FastAPI question: How do I achieve route aliasing in FASTAPI

I just started learning about FastAPI and I have this issue where I need your kind help.Let's say I am creating a page based on some image IDs (img001, img002, ... etc.) which are saved in a database...

View Article


How do I properly open an image from a folder to process it?

I need to open images and edit them. But when opened, "no such file or directory" or "<ImagingCore object at 0x0000020625552F70>" comes out. The path is specified correctly, checked several...

View Article

why my python interpreter doesn't show type of data?

enter image description herewhen I move my mouse pointer on variable python interpreter doesn't show data type in vscode?and also I don't know this problem is for vscode or python interpreterI...

View Article

Image may be NSFW.
Clik here to view.

How to replace the outlier with 3 standard deviation value for all column...

Hi I have data frame in which I want to replace/cap the outlier with the 3*standard deviation value for all column with group by for each column. For example:df = pd.DataFrame({"A":["A", "A", "A", "A",...

View Article

Gradio app triggers event listener second time after 60 minutes

I have a Gradio app where you can upload a CSV file, make predictions for all entities in the CSV file and download the results after the process has finished.If I run predictions for smaller and...

View Article


How to find PSNR from two images with different size in python

I have 2 images, the original and other reconstructed. The original has a size of (180, 180) but the reconstructed image has size of (71,81) and I want to find PSNR for the reconstructed image. Since...

View Article

Map each row into a list and collect all

I have a dataframe:df = pl.DataFrame( {"t_left": [0.0, 1.0, 2.0, 3.0],"t_right": [1.0, 2.0, 3.0, 4.0],"counts": [1, 2, 3, 4], })And I want to map each row into a list, and then collect all values (to...

View Article


Image may be NSFW.
Clik here to view.

Creating multiple salt-engine process in rhel

I have installed the salt 3006.4 version which is based on one DIR ( python3.10 ). I have configured a py code to run via salt-engine whose config looks like this:engines: - script: cmd:...

View Article

Speech recognition in Machine learning

i gave a seminar on speech recognition in machine learning in this seminar we provide a demo,algorithms and presentationanybody can help me for the speech recognition in MLfor speech recognition in ML...

View Article


Why aren't the environment variables working inside my Django Docker container?

I'm encountering an issue where Django doesn't seem to be reading environment variables when running in a Docker-compose environment. Strangely, the environment variables work fine for PostgreSQL but...

View Article

LangChain not using tools every time

I am building a LangChain application using OpenAI.I am using 3 tools-Two tools are pdf based tools, reading pdf and finding similarity scores with the user queryOne tool is excel based tool, reading...

View Article

Efficiently Retrieving Latest Matched Strings from Large CSV Based on...

I'm dealing with two CSV files for a Python task. The first CSV has 'string' and 'updated' columns, while the second CSV has a 'pattern' column. My goal is to efficiently find the latest matching...

View Article
Browsing all 13951 articles
Browse latest View live


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