Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python

Python Questions & Answers

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.

802Discussions
914Answers
1Waiting for an answer
Ask a Python Question →
Browse by topic: Angular HTML Module

Selecting/excluding sets of columns in pandas

I would like to create views or dataframes from an existing dataframe based on column selections.For example, I would like to create a dataframe df2…

Python

1 Answer · 544 Views · Answered ✓

Asked by: Augustina Fuentes · 5 years ago

15- Add x and y labels to a pandas plot

Suppose I have the following code that plots something very simple using pandas: import pandas as pdvalues = [[1, 2], [2, 5]]df2 =…

Python

1 Answer · 1.4K Views · Answered ✓

Asked by: Ava Black · 5 years ago

How can I get a list of the values in a dict in Python?

In Java, getting the values of a Map as a List is as easy as doing list = map.values();. I'm wondering if there is a similarly simple way in Python…

Python

1 Answer · 1.1K Views · Answered ✓

Asked by: Bella Blake · 5 years ago

Filtering a pyspark dataframe using isin by exclusion

I am trying to get all rows within a dataframe where a columns value is not within a list (so filtering by exclusion).As an example:df =…

Python

1 Answer · 1.6K Views · Answered ✓

Asked by: Bernadette Bond · 5 years ago

14- 2d trilateration

I am writing some code to participate in an AI challenge. The main objective of the AI challenge is to take a simulated robot and navigate it through…

Python

1 Answer · 880 Views · Answered ✓

Asked by: Bruce Benedict · 5 years ago

MySQL OPTIMIZE all tables?

description - MySQL has an OPTIMIZE TABLE command which can be used to reclaim unused space in a MySQL install. Is there a way (built-in command or…

Python

1 Answer · 962 Views · Answered ✓

Asked by: Deirdre Cameron · 5 years ago

Mongoose - Save array of strings

I am trying to save an array of strings into my Database using Mongoose.So for that, I have declared a variable of a person schema:var newPerson =…

Python

2 Answers · 4.8K Views · Answered ✓

Asked by: Aalap prabhakaran · 5 years ago

SSRS expression switch/Else if

I have been messing around with this all morning and i just can't quite figure it out. A Parameter is with me that can be one of two values. Either I…

Python

1 Answer · 1.2K Views · Answered ✓

Asked by: Ira Joshi · 5 years ago

How to concatenate two layers in keras?

I have an example of a neural network with two layers. The first layer takes two arguments and has one output. The second should take one argument as…

Python

1 Answer · 1.5K Views · Answered ✓

Asked by: Ben Butler · 5 years ago

Git: please tell me who you are error

I have app servers that I bootstrap together using Chef + some ad-hoc bash scripts. The problem is, when I want to run an update on one of these app…

Python

1 Answer · 1.2K Views · Answered ✓

Asked by: Faith Davidson · 5 years ago

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.

Explore other technologies

Pick another topic to find answers, interview questions, and real-world tips.