Quantcast
Channel: Active questions tagged python - Stack Overflow
Browsing all 13951 articles
Browse latest View live
↧

Numpy on AWS GovCloud Lambda

I seem to have a unique issue which is quite surprising! I need to add Numpy to my Lambda function and I'm using a layer rather than Docker (not interested in using Docker at the moment). I use...

View Article


In Python, can you store an integer into RAM in a certain address and access...

In Python, can I store an integer into RAM in a certain addressand access it from another Python script? It doesn't necessarily have to be an integer,just any kind of data I can interpret from another...

View Article


how to divide large python file into small files without change program...

I face a program like following:# This code just used to reflect the recursive structure, DO NOT take it grammatically !!class A: def __init__(self) -> None: pass def check(self, element): if...

View Article

SQL Server Connection issues with Flask Web App

I have a python flask webapp and when the page is loading, connects to our SQL Server DB and saves certain tables as Panda data frames. This operation must happen as the page is loaded in. I am having...

View Article

Image may be NSFW.
Clik here to view.

PySpark collect per-column count into column instead of row

I have a use case where I try to collect information about every column in a dataframe (e.g. counting the amount of None values in each column):def fn_count_null_values_for_columns(p_df):return...

View Article


Android Studio: Error while downloading chaquopy-libgfortran

I've tried to use Python on my Android app using Chaquopy. But I've got some error as I listed bellow. I don't know what's wrong since the error not showing anything. Did I do something wrong with the...

View Article

Display a User_Employee Private Information in Odoo 17

In my odoo 17 community , i created one user and that user also employee . now iwas login as an user and open his account in employee .** i can't see my own private information record**. this is my...

View Article

Image may be NSFW.
Clik here to view.

How to delete points within a line?

input data - https://pastebin.com/uSSvwngPinput data format example:profile_points_raw = [(1000, 1000, 0), (1000, 500, 0), (1000, 1500, 0)]river_profile_point = [(1029.4445441834994, 944.3, 0),...

View Article


Building plots with plotnine and Python

I am looking for a way that I can modify plots by adding to an existing plot object. For example, I want to add annotations at particular dates in a work plot, but want a standard way of building the...

View Article


wget python .tmp error doesn't work on specific web URL(web crawling )

Hello I have a weird problem in Python using wget, will be so grateful if someone could give me a help.what I want to do :download the file('.pdf','.djvu') from specific website(ex. wiki) with wget,...

View Article

How to get all noun phrases in Spacy

I am new to Spacy and I would like to extract "all" the noun phrases from a sentence. I'm wondering how I can do it. I have the following code:import spacynlp = spacy.load("en")file =...

View Article

Spacy nlp = spacy.load("en_core_web_lg")

I already have spaCy downloaded, but everytime I try the nlp = spacy.load("en_core_web_lg"), command, I get this error: OSError: [E050] Can't find model 'en_core_web_lg'. It doesn't seem to be a...

View Article

TypeError: finance_tracker.create_widgets..() missing 1 required positional...

I am getting an error in the following codeclass finance_tracker:def init(self, root):self.root = rootself.root.geometry("1000x550")self.root.resizable(False, False)self.root.title('Personal Finance...

View Article


Run flow on prefect cloud without running local agent locally?

I'm trying to deploy my flow but I'don't know what I should do to completely deploy it (serverless).I'm using the free tier of Prefect Cloud and I have create a storage and process block.The step I...

View Article

Image may be NSFW.
Clik here to view.

os.path.isfile() returns False for a file that I'm sure is there. What could...

Hi I am trying to read in and display a picture with cv2 for further analysis with the following code:Edit: I added the path with my username being clear to prove it doesn't contain wacky characters. I...

View Article


Python Beautiufulsoup chaining find dealing with none

I am writing some HTML processing and am loving BS4. I do find it a bit lengthy and was hoping there was some better way to deal with this.I would love to chain my finds together like...

View Article

While using zip(a,b) funtion with dict() , it returns the value in key,value...

a = ("John", "Charles", "Mike") b = ("Jenny", "Christy", "Monica") x = zip(a, b) #use the tuple() function to display a readable version of the result: print(dict(x))Just got to know about zip()...

View Article


R markdown with python/reticulate - No module named pandas

I'm getting a ModuleNotFoundError for pandas immediately after being told pandas is installed.Here is simplified code that shows the problem.{r echo=FALSE,...

View Article

Image may be NSFW.
Clik here to view.

Python Error: Unable to create process using python Access is denied

EnvironmentI had python 3.11.x and 3.12.x installed. But i found that 3.11.x is more compatible with things in general, and 3.12.x isn't mainstream yet. Sorry if that badly described, but i think it's...

View Article

FastAPI returns "Error 422: Unprocessable entity" when I send multipart form...

I have some issue with using Fetch API JavaScript method when sending some simple formData like so:function register() { var formData = new FormData(); var textInputName =...

View Article
Browsing all 13951 articles
Browse latest View live


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