I want to set the colorbar with no ticks in any form. I've searched and set the tick parameter at two places. However, still there are some ticks at right boarder.
from pathlib import Path class MyClass: FILE_PATH = Path('/etc/ids.json') I know that pyfakefs is not able to mock this automatically. So in my test I use its Patcher class (I also tried other ways.)...
I'm learning FastAPI on my own, trying to make a tutorial project, but I'm running into some difficulties. I need the api to receive a date in the format “dd.mm.YYYY” and the output to be in the same format. I'm using a schema inherited from...
Could someone suggest a way to adding 1KM wide grids/graticules to folium map? The folium example here uses lat/longitude intervals but doesn't render the grid.
import folium # Bangkok coordinates center_lat = 13.7563 center_lon = 100.4911 m =...
I need to create a dataframe such that:
df.Condition == A , df.Output = True Next three rows after df.Output = True (even when Condition== A , df.Output = None
Original df
Condition A A B A B A B
Desired output:
Condition Output A True B None A...
I have a dataset that updates on a daily basis, and I am trying to create a bar chart that shows the number of sales for each sub-category within the past 12 months. This is what my dataset looks like:
If statements in Python allow you to do something like:
if not x: print X is false. This works if you're using an empty list, an empty dictionary, None, 0, etc, but what if you have your own custom class? Can you assign a false value for that...
I am using Flutter Linux app to run some APIs that I wrote with fast APIs running locally on my Ubuntu machine. APIs are working well when tested with Postman, but I am getting a 307 error when calling them in my Flutter app. The error shows that I...
Please help me with the code. The bottom line is this: there are two bots. one bot writes a welcome message and requests experience from the worker. The employee leaves his request, and this request is sent by a second bot in the chat. Under this...
Alright so i have a discord ask command that's supposed to let the user ask any thing and take the input and give it to gemini through the API but it seems to keep returning 0 canidates. I included a try statement only incase the user asks something...
I want to group the date and count the same item in the each day and then I want to get max value of count and join the item. My data frame is like this.
df= pd.DataFrame({'date': , 'fruit': , 'value': }) input: x = df.groupby('date')...
I have a problem regarding the correlation of two light curves in my bachelor thesis. I use Scipio.signal.correlate to calculate the correlation. The light curves both have a different amount of data points and have different times. I think the...
i want to run this project but i get (.venv) PS C:\Users\Bakkari Informatique\tic-tac-toe-master> & c:/Users/Bakkari Informatique/tic-tac-toe-master/.venv/Scripts/python.exe c:/Users/Bakkari Informatique/tic-tac-toe-master/play.py 0 2024-03-06...
I am a beginner and I am working on a classification problem related to heart disease using RandomForestClassifier. While performing hyperparameter tuning on RandomForestClassifier, I am facing the following issue. I am using sklearn Pipeline and...
I'm encountering an error when using LangChain's FAISS module to build a vector index from a list of documents. Specifically, I'm getting an IndexError: list index out of range on the line where I call FAISS.from_documents(docs, embeddings).
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения