Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python
0
votes
Q: How to import other Python files?
How do I import other files in Python? How exactly can I import a specific python file like import file.py? How ... gap from extra.py? Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
python
import
0
votes
Q: How to check file size in python?
I am writing a Python script in Windows. I want to do something based on the file size. For example, if the ... I check the file size? Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
python
file
0
votes
Q: Should I use 'has_key()' or 'in' on Python dicts?
I wonder what is better to do: d = {'a': 1, 'b': 2} 'a' in d True or: d = {'a': 1, 'b': 2} d.has_key('a') True Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
python
dictionary
0
votes
Q: Proper way to declare custom exceptions in modern Python? //For all the versions?
What's the proper way to declare custom exception classes in modern Python? My primary goal is to follow whatever ... is it necessary? Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
python
exception
0
votes
Q: Python Implementation of OPTICS (Clustering) Algorithm
I'm looking for a decent implementation of the OPTICS algorithm in Python. I will use it to form density-based ... to that cluster. Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
machine-learning
artificial-intelligence
neural-network
data-science
python
0
votes
Q: Converting a Pandas GroupBy output from Series to DataFrame
I'm starting with input data like this df1 = pandas.DataFrame( { "Name" : ["Alice", "Bob", "Mallory", ... Any hints would be welcome. Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
machine-learning
data-science
pandas
python
scikit-learn
0
votes
Q: Combine two columns of text in dataframe in pandas/python
I have a 20 x 4000 dataframe in python using pandas. Two of these columns are named Year and quarter. I'd ... anyone help with that? Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
pandas
machine-learning
python
data-science
0
votes
Q: Creating an empty Pandas DataFrame, then filling it?
I'm starting from the pandas DataFrame docs here: http://pandas.pydata.org/pandas-docs/stable/dsintro.html I'd ... =1)] print valdict Select the correct answer from above options...
asked
Jan 28, 2022
in
Education
by
JackTerrance
machine-learning
python
0
votes
Q: mkdir -p functionality in Python [duplicate]
Is there a way to get functionality similar to mkdir -p on the shell from within Python. I am looking for a ... has already written it? Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
file-io
file
python
0
votes
Q: Shuffling a list of objects
I have a list of objects in Python and I want to shuffle them. I thought I could use the random.shuffle method, ... (b) This will fail. Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
python
random
list
loop
Page:
« prev
1
...
19
20
21
22
23
24
next »
...