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 ArticleIn 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 Articlehow 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 ArticleSQL 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 ArticlePySpark 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 ArticleAndroid 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 ArticleDisplay 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 ArticleHow 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 ArticleBuilding 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 Articlewget 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 ArticleHow 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 ArticleSpacy 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 ArticleTypeError: 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 ArticleRun 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 Articleos.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 ArticlePython 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 ArticleWhile 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 ArticleR 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 ArticlePython 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 ArticleFastAPI 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