Category "python-3.x"

How to fix missing double quotes issue when parsing JSON data?

I am running a piece of code in Python3 where I am consuming JSON data from the source. I don't have control over the source. While reading the json data I am g

With the Python-Binance API, my limit order is only partially filled

I'm using Python 3.9 and the Python - Binance API, version python-binance==1.0.15. In their test environment, I'm placing buy orders like so order=self._get_au

I get "Release of profile requested but WebEnginePage still not deleted. Expect troubles !" even after calling app.exec()

I have a python code like below import sys from PyQt5 import QtWidgets, QtWebEngineWidgets from PyQt5.QtNetwork import QNetworkCookie from PyQt5.QtCore import Q

How to add Screen Manager to my KIVYMD code, but not in kv file only class method

I'm new here, I have a small problem in kivymd. Is there anyone here who would be able to help me? this is my main.py file from kivymd.app import MDApp from k

Encountering Fatal Python error when I try to use pip in command prompt

I am a new programmer who is trying to follow this tutorial about pip. In the tutorial, you are asked to go into command prompt and type 'pip'. You are supposed

Setting Up a Python Virtual Environment with Hydrogen in Atom

I'm in the middle of switching from VS Code to Atom and I'm trying to set up a virtual environment for my python project. It was pretty easy to do in VS Code, I

Challenge value not responding when connecting to request URL using python

I am trying to connect to my request URL in slack but it does not respond with the challenge value like it is supposed to. This has never been an issue before a

How to Ignore errors in Dataframe to_sql method

I am using Pandas DataFrame.to_SQL() to insert data from dataframe to table. Nothing gets loaded if even a single record has loading issues, for example: if a i

Utilising Cython with Pyinstaller

I am trying to build a program in python using Cython and PyInstaller. Before starting, I built this test program. However, the two modules aren't working toget

AttributeError: 'int' object has no attribute 'split' for pandas

AttributeError: 'int' object has no attribute 'split' Data is : print(df) Content Page no 0 My name is mark 3 1 My name is jeff

Use Python plotly chart in PHP

I have created a pie graph with Python plotly library fig = go.Figure(data=[go.Pie(labels=data["x"], values=data['value'])]) fig = dcc.Graph(id='pie_graph', fi

Python 3 Jump Tables

I am trying to figure out how to create a basic jump table, so I can better understand different ways of creating menus in Python 3.5.6. Here is what I have so

after i print a list, it just despeared

In the following code, first create a list collection in the loadDataSet () function, and then use the map function to convert it into a set D ,after that,it ca

Why is 'NoneType' object not iterable in HackerRank, but not PyCharm?

Using Python 3.x, I'm trying to round up students grades given a teacher's weird way of grading. Basically, if the student grade is below 38, do nothing. If the

How to use the second parent class methods which is inheriting from an interface in python?

I am trying to implement an interface and this interface is taken by two concrete classes say class First and class Second, I have another class that takes thes

enabling pylint_django plugin in vscode, pylint stop working

That's my user settings in vscode { "python.pythonPath": "/Users/cristiano/miniconda3/envs/django-rest-2/bin/python", "python.linting.pylintEnabled": true,

can't import function from different module/file

I'm super new to this and this is my first time posting on forum.. trying to import a function from books.py to be used in logic.py File structure: application

How can I send an encoded quickfix message in Python?

I want to send a message encoded in EUC-KR. So, I tried sending a message using an example/ sample below, but I ended up getting an error. # https://github.com/

JupyterLab: Run all cells below

In the Jupyter Notebook I could use the following command to automatically execute all cells below the current cell. from IPython.display import Javascript dis

Reverse string without affecting special character

I'm trying to reverse a string without affecting special characters, but it is not working. Here is my code: def reverse_each_word(str_smpl): str_smpl = "S