What does it mean if a Python object is “subscriptable” or not?
Which types of objects fall into the domain of "subscribable"?
1 Answer · 1.5K Views · Answered ✓
Browse 802 Python questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.
Which types of objects fall into the domain of "subscribable"?
1 Answer · 1.5K Views · Answered ✓
I've trained a Linear Regression model with R caret. I'm now trying to generate a confusion matrix and keep getting the following error:Error in…
1 Answer · 3.1K Views · Answered ✓
I have been working with the latest version of Anaconda for Windows x64 with Python 3.8 and now I want to add the tensorflow module. By default, my…
1 Answer · 1.5K Views · Answered ✓
I have a list in Python e.g.names = ["A", "B", "C"]I want to print the array in a single line without the normal " []names = ["A", "B", "C"]print…
1 Answer · 1.1K Views · Answered ✓
I am using Python 3.2.1 and I can't import the StringIO module. I use io.StringIO and it works, but I can't use it with numpy's genfromtxt like…
1 Answer · 1.5K Views · Answered ✓
In the Python multiprocessing library, is there a variant of pool.map which support multiple arguments?text = "test"def harvester(text, case):X =…
1 Answer · 2.2K Views · Answered ✓
I am getting this errordetailed message sun.security.validator.ValidatorException: PKIX path building…
1 Answer · 1.6K Views · Answered ✓
description: I would like to change the format (class) of some columns of my data.frame object (mydf) from character to factor.I don't want to do…
1 Answer · 670 Views · Answered ✓
I've had this error when I try to import packages on anaconda :ImportError: Missing required dependencies ['numpy']I have tried un-installing…
1 Answer · 839 Views · Answered ✓
I'm following this tutorial to make this ML prediction: import numpy as np import matplotlib.pyplot as plt from matplotlib import style…
1 Answer · 1.0K Views · Answered ✓
On importing requests, I am getting an error saying No module Named requests. import requestsThe error I get:File "ex2.py", line 1, in import…
2 Answers · 8.5K Views · Answered ✓
I have two points in 3D:(xa, ya, za)(xb, yb, zb)And I want to calculate the distance:dist = sqrt((xa-xb)^2 + (ya-yb)^2 + (za-zb)^2)What's the best…
1 Answer · 1.6K Views · Answered ✓
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common Python interview questions, answered
Guides, tips and career advice on Python from JanBask experts.
Python How to Become a Python Developer: A Step-by-Step Guide for Beginners
Discover how to become a Python Developer via a practical 7-step guide build projects, maintain clean code, practice daily, and…
Python PCEP Certification Guide: Entry-Level Python Programmer Certification
Explore this PCEP certification guide for insights on cost, exam format, passing score, application, training, and study tips.…
Python Top 50+ Python Projects ideas for Beginners to Advanced
Discover innovative Python project ideas, explore advanced Python projects, and find good Python projects for beginners and…
Python How To Comment Out Multiple Lines In Python Like A Pro
Commenting out code is a common practice among programmers. It allows you to temporarily disable parts of your code without…
Pick another topic to find answers, interview questions, and real-world tips.