Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python-faq
0
votes
Q: How to iterate over rows in a DataFrame in Pandas?
There is a DataFrame from pandas: import pandas as pd inp = [{'e2':20, 'e3':200}, {'e2':22,'e3':220}, { ... '] Can I do this in Pandas? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
rows
python
dataframe
python-faq
0
votes
Q: Converting integer to string in Python?
In Python how can I convert an integer to a string? I am trying this: r = 16 r.str() I am trying to ... but there's nothing like that. Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
string
python
python-faq
integer
0
votes
Q: Getting the class name of an instance?
How do I find out a name of class that created an instance of an object in Python if the function I am ... get at this information. Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
python-faq
python-datamodel
instanceof
0
votes
Q: Random string generation with upper case letters and digits
How can I generate a string of size N. I want it to be of uppercase English letters and numbers like this: 7I2D86 ... do it in Python. Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
string
random
python-faq
python
0
votes
Q: Nicest way to pad zeroes to a string
Is there any way to pad a numeric string with zeroes to the left side in a Python script, I want it to be of a specific length? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
string
zero-padding
python-faq
0
votes
Q: What's the canonical way to check for type in Python?
How can I check a given object is of a given type? How can I check that a object inherit a given type? There's ... that it's a string? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
string
python
python-faq
0
votes
Q: What are the differences between type() and isinstance()?
There are two codes, what are the difference between them: Using type import types if type(q) is types. ... ): do_something_else() Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
python-faq
oop
types
inheritance
0
votes
Q: How do I remove an element from a list by index in Python?
How to remove an element from a list by index in Python, I tried list.remove method but it search the list and ... How can I do this? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
python-faq
list
0
votes
Q: How to determine a Python variable's type?
I have a python variable how can I see that it's unsigned 32 bit or signed 16 bit, etc? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
signed
unsigned
python-faq
python
0
votes
Q: String formatting: % vs. .format
In Python 2.6, the str.format() has been introduced and has a slightly different syntax than existing % operator. ... %s" % some_info) Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
logging
string-formatting
python-faq
Page:
« prev
1
2
3
4
...