I would like to plot a relatively simpler bar chart but struggling to plot using Matplotlib. Could I get some help please. I would like to prepare a chart as sh
I'm learning python and I am trying to create the guess game with two levels of difficulty: easy (10 tries) and difficult (5 tries). My code works well, but I n
my task.py file from celery import Task from random import randint @shared_task def create_nb(): a = randint(1, 100) b = randint(1, 100) return {"
Hello I have this string and I need extract from this some sub strings according some delimiters: string = """ 1538 a 123 skua456 789 5 g 15563 blu55g b 456 164
I am running the following straightforward code: sns.kdeplot(data=subset_data['VaribleA'],fill=True, color = "#FF0000" , linewidth=1, bw_method = 0.25) When I
I am trying to use python to load in certain excel files that have 'formatted' in the title. I am attempting to use Python regular expressions to do this; howev
I am trying to run this command but need to insert new two variables for every time I run this command. I think the right approach is to loop through a dictiona
Have a set of string as follows text:u'MUC-EC-099_SC-Memory-01_TC-25' text:u'MUC-EC-099_SC-Memory-01_TC-26' text:u'MUC-EC-099_SC-Memory-01_TC-27' These data
I need to solve this two equations simultaneously in python : "b" is constant; but I don't know how to put the function "P" and its derivative at same time in
I need to scrape "2015" and "09/09/2015" from the below link: lacentrale.fr/auto-occasion-annonce-87102353714.html But since there are many li and ul, I cant sc
I'm writing code in python to help me accomplish something in a Roblox game. I won't go into too much detail, but basically, the objective is to automatically c
I need to re-order columns in a csv but I'll need to call each column from a dictionary. EXAMPLE: Sample input csv File: $ cat file.csv A,B,C,D,E a1,b1,c1,d1,e1
I want to make a barplot of a groupby made with 2 columns. I managed to make the chart with the following code: df = pd.DataFrame({"error": ['erreur_qt', 'ref_a
My columns are fixed and should not move. The rows are ever changing. I need to find a string 'Bond Fund' and each row this is found needs to add data to colu
I installed several files based upon `https://pbpython.com/pdf-reports.htm to create reports. However the following error messages Traceback (most recent call l
Obs: this question is duplicated here. Hello all. Im configuring a jupyterhub server in an ubuntu machine. According to this page, not setting a specific c.Auth
When doing something like : import sqlalchemy as sa with session() as S: print(S.execute(sa.orm.select(A, B)).all()) sqlalchemy display this warning : <i
You can see my dataframe below, x values are different value, but other values are same with left values, for example, column 15 and column 16 are same value. I
I'm having a problem with my nested loop. I have a list of titles and a list of keywords, and I want to create a new list containing all of the titles that cont
I have a dict with two strings "Candy-one" and "Candy-two" as the key and Capacity as the key pair. I wish to replace the strings "Candy-one" and "Candy-two" wi