Seach the website
Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Courses
Feedback
Recent questions tagged python
0
0 votes
0
0 answers
1.4k
1.4k views
Which code has best runtime and why?(the one commented or the other one)
# for key, value in dict.items(): # if value >= long: # long = value # long_name = key # if value < sh...
someone_prog
120
points
1
1
3
asked
Sep 2, 2022
Python
python
+
–
0
0 votes
0
0 answers
1.5k
1.5k views
Kmeans clustering in python - Giving original labels to predicted clusters
I have a dataset with 7 labels in the target variable.X = data.drop('target', axis=1) Y = data['target'] Y.unique()array(['Normal_Weight', 'Overweight_Level_I', 'Overweig...
Frenzy
120
points
2
2
4
asked
Apr 27, 2022
Machine Learning
python
machine-learning
clustering
scikit-learn
+
–
0
0 votes
0
0 answers
1.9k
1.9k views
ValueError: Length mismatch: Expected axis has 60 elements, new values have 2935849 elements
I'm creating a new data frame with the most used items grouped together. But I got the following error when grouping through ID and items. ValueError: Length mismatch: Ex...
aryansan
120
points
1
1
3
asked
Nov 26, 2021
Exploratory Data Analysis
data
python
+
–
0
0 votes
0
0 answers
368
368 views
Can Data Science solve this problem?
So, I live in Brazil, and I have a task for college that I don't know what data science method to use, if at all, to solve it. My idea is the following: We Brazilians hav...
0xthalesx0
120
points
1
3
asked
Oct 24, 2021
General
ask-data-science
python
mongodb
machine-learning
+
–
1
1 vote
1
1 answer
4.1k
4.1k views
How to remove unwanted Jupyter notebook kernels?
Whener I run Jupyter notebook there are some kernels that do not exist on system and generate errors. How can I remove them?
askpython
1.4k
points
18
19
25
asked
Oct 30, 2020
General
jupyter-notebook
python
programming
+
–
1
1 vote
0
0 answers
528
528 views
How to print confusion matrix if I am using stratifiedkfold method?
Ziva
230
points
5
5
9
asked
Aug 6, 2020
Python
python
machine-learning
+
–
0
0 votes
0
0 answers
532
532 views
I am facing the error after importing torch module in python. How can I solve it? The error link is given below
https://ibb.co/MgXvrkL
Ziva
230
points
5
5
9
asked
Jul 31, 2020
Python
python
+
–
2
2 votes
1
1 answer
890
890 views
What is difference between Support vector machine and Support Vector Classification?
Ziva
230
points
5
5
9
asked
May 13, 2020
Machine Learning
machine-learning
python
+
–
1
1 vote
1
1 answer
2.8k
2.8k views
How to share a Jupyter Notebook document on Google Colab?
How can I give access to others to view, comment or edit my Jupyter Notebook on Google Colab?
tofighi
116k
points
73
79
101
asked
Feb 27, 2020
General
python
jupyter-notebook
google-colab
programming
+
–
1
1 vote
1
answers
1 answer
1.5k
1.5k views
How to filter a dataframe?
Consider the Pandas DataDrame df below. Filter it appropriately so that it outputs the shown results.gh owner language repo stars 0 pandas-dev python pandas 17800 1 tidyv...
interview
1.4k
points
11
19
23
asked
Dec 24, 2019
Python Interview Questions
data-science
python
data-cleaning
data-manipulation
dataframe
pandas
+
–
1
1 vote
1
1 answer
649
649 views
How does break, continue and pass work in Python?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
1.1k
1.1k views
What are self and _init_ in Python classes?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
2
2 votes
1
answers
1 answer
977
977 views
What are classes in Python?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
673
673 views
What are functions In Python?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
689
689 views
What is the difference between Python Arrays and Lists?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
757
757 views
Is indentation required in Python? Is Python case-sensitive?
askpython
1.4k
points
18
19
25
asked
Jul 11, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
701
701 views
What is type conversion in Python?
askpython
1.4k
points
18
19
25
asked
Jul 9, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
872
872 views
What are the local variables and global variables in Python?
askpython
1.4k
points
18
19
25
asked
Jul 9, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
5.4k
5.4k views
What are python modules? Name some commonly used built-in modules in Python?
askpython
1.4k
points
18
19
25
asked
Jul 9, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
1
1 vote
1
1 answer
613
613 views
What is PYTHONPATH in Python?
askpython
1.4k
points
18
19
25
asked
Jul 9, 2019
Python Interview Questions
python
python-basics
python-interview
+
–
Page:
1
2
3
4
next »