Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
24 views

The code is print(score.sort(reverse=True)[:3]) And it makes an error TypeError: 'NoneType' object is not subscriptable What is the problem?
뽀로로's user avatar
-5 votes
1 answer
57 views

Questions like: How to reverse a string without slicing? # Write Python code to reverse a string without using slicing # string("DataScience")) # Output: ecneicSataD Write Python code ...
Rutuja Udmale's user avatar
2 votes
1 answer
42 views

I am very, very new to programming having just finished a semester-long course on Python. I wanted to take an existing program I had written for my class and redirect all the output text to a separate ...
user32674704's user avatar
0 votes
1 answer
45 views

I am currently trying to make a nested MySQL query using Python. But I am a bit confused about how the respond to a query that comes in a weird format with "()" and "," rather than ...
erotski's user avatar
  • 53
Tooling
0 votes
1 replies
29 views

I am building a RAG Study Assistant and need advice on finalizing my Docker setup. I have a specific architecture in mind to maximize performance and portability. The Architecture: App: Streamlit + ...
Denis_Hrica's user avatar
-4 votes
1 answer
45 views

I recently ran into a problem: I needed to create a pywebview app, but I wanted to customize the top control bar where the buttons for minimizing and closing the app are located. First, to make sure ...
Lerck's user avatar
  • 13
-3 votes
1 answer
62 views

Even though the embed sends just fine when I don't attempt to add set_thumbnail, it gives me an error when I try to add it: from discord import SyncWebhook, Colour, Embed import requests ABwebhook = ...
Rosie's user avatar
  • 1
0 votes
0 answers
29 views

We have a setup where we use Lambda serverless flask application behind an API Gateway. We started adding Opentelemetry as an additional layer in the lambda function (arn:aws:lambda:eu-central-1:...
rmbt's user avatar
  • 67
0 votes
1 answer
53 views

I want to work around sympy's limitation of assuming partially commutative behavior. If I define the non-commutative symbols import sympy as sy u = sy.Symbol('u',commutative=False) v = sy.Symbol('v',...
Walter's user avatar
  • 45.9k
Advice
0 votes
1 replies
92 views

I’m building an application that sends user-generated text to GPT APIs, but the data may contain personally identifiable information (PII) such as names, emails, phone numbers, or account details. ...
Rom Questa AI's user avatar
-3 votes
0 answers
91 views

I was experimenting with PyDictionary because I wanted to add a Define/Translate feature to my discord bot, but it only gives me {} as a response to print(dictionary.meaning("indentation")) ...
user32669457's user avatar
0 votes
0 answers
69 views

I am building an OMR (Optical Mark Recognition) system in Python using OpenCV. My answer sheet has 180 bubbles arranged in 4 columns of 45 questions, with 4 options (A, B, C, D) per question. Each ...
Sriram N Kulkarni's user avatar
1 vote
1 answer
50 views

I have a .dos script that runs fine in the DolphinDB GUI but fails when executed via the Python API's session.run. The error goes away when I manually remove all comments from the script. Script (...
Jane's user avatar
  • 59
Tooling
0 votes
3 replies
54 views

I have a raw time series dataset. Can I use classification models on time series data? If yes which classification models can I use without forecasting? Most examples I’ve seen focus on forecasting or ...
Rifa Martha's user avatar
Best practices
0 votes
12 replies
101 views

import math import matplotlib.pyplot as plt import numpy as np m=50 def taylor_cos(x,n): sum=0 for i in range(0, n): sum=sum+ (((-1)**i) * (x**(2*i)) / math.factorial(2*i)) ...
Artemii Karapetian's user avatar

15 30 50 per page
1
2 3 4 5
147099