Recent questions tagged python

Ask a Question
0 votes
1 answer 19 views

I want to merge two dictionaries into a new dictionary. x = {'a': 1, 'b': 2} y = {'b' ... in both dictionaries, only the value y[k] should be kept....

+3 votes
0 answers 9 views

Dictionaries are insertion ordered as of Python 3.6. It is described as a CPython ... than the older one while preserving element order?...

+2 votes
0 answers 10 views

What are metaclasses? What are they used for?...

+2 votes
0 answers 12 views

Recently I started playing around with Python and I came around something peculiar in the way closures ... not be affected when i changes its value?...

+2 votes
0 answers 21 views

Is there a ternary conditional operator in Python?...

0 votes
0 answers 9 views

Why are x and y strings instead of ints in the below code? (Note: in Python 2.x use raw_input() ... raw_input() was renamed to input() in Python 3.x)...

0 votes
0 answers 14 views

What is pivot? How do I pivot? Is this a pivot? Long format to wide format? I've seen a lot of ... .. ... But I'm going to give it a go....

0 votes
0 answers 19 views

Use "while" statement till user enter a true value and if the input value is not a number or it' ... can use 0 key and enter it as a value....

0 votes
0 answers 18 views

Having spent a decent amount of time watching both the r and pandas tags on SO, the impression that ... Simple dataframes can be put together, e.g.:...

To see more, click for the full list of questions or popular tags.
...