Hello i'm new to python and i'm trying to make a dictionary that can contain multiple dictionaries (depending on how many the user wants) and
I have 2 arrays. I want to get rid of elements in array n1 if the element exists in array n2. I already have a solution, but it is not so efficient since it use
If the number is 1 want it to print 1 is a number but instead it prints <function num> is a number. How do I fix this? def num(): int(input("number: "))
cudatoolkit has metadata and a description, and seems to be widely referenced in various installation guides for different libraries, e.g. pytorch.cuda-toolkit
I'm trying to web scrape using selenium an NFT, website Magic Eden. When I try and scrape normal data like text on top of the page my code works fine, but when
I want to merge one column into one string from 2D list. Are there better ways to merge it? lists = [['H', 'W'], ['e', 'o'], ['l', 'r'], ['l', 'l'], ['o','d']]
Here is my code: #Import libraries import os import pandas as pd import requests import matplotlib.pyplot as plt import numpy as np from datetime import date im
I would like to add the following formulas to a spreadsheet sheet["D6"] = "=AVERAGE(D3:D5)" sheet["E6"] = "=AVERAGE(E3:E5)" sheet["F6"] = "=AVERAGE(F3:
I use VS Code extension Python version 2.2x, Python interpreter version 2.7x, and use Odoo 10 of the latest version. I'm using WSL with Ubuntu 18.4 LTS. I canno
I am working on integrating Microsoft Dynamics NAV 2013 R2 with my Python application. My objectives for this integration are: Query all the Sales Orders Create
I'm hoping there's a way to do this but not entirely sure. I want a way to update all of my labels after a button press. This is how I'm currently doing it whic
I've been trying to incorporate azure.cosmos into a azure function without using binding since the scenario isn't beneficial for it. The problem every time i tr
I have a Pandas DataFrame (data) with a column ['Date'] in DateTime (date and time) which represents the time of arrival. How to calculate the mean of only the
I am new to python and am learning things slowly. I have earlier performed API calls from databases to extract infromation. However, I was dealing with a partic
I am trying to predict a simple pattern using LSTM based network. I input a single vector and get the output vector with the same shape as a prediction. How can
Sample input data in which Value1 is duplicated across several keys {'Key1': ('Value1', '28.302', '30', '131', '10', '321'), 'Key2': ('Value2', '42.373', '44'
I'm creating a chatbot that asks questions and answers questions, but for now it doesn't have a specific function of answering specific questions that it asks i
I have a some code that looks like this (abridged): ## ./module_1/lambda_function.py from shared.graphql_helpers import GraphQLClient gql_client = GraphQLClie
How do I return an excel file (version: Office365) using FastAPI? The documentation seems pretty straightforward. But, I don't know what media_type to use. H
I'm new to pandas and plotly. And I have a large csv file with two columns, a date column and a column that contains a string of text (event). Each event is a n