python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
is there any effective or efficient way to find net position of numbers from a data frame in python
I have a multi index df, with column "Turtle"
| | | Turtle | Net Pos|
|-----------|--------|--------|--------|
|2004-11-04 |09:24 |6 | |
| |09:34 ...
alphabeta
Votes: 0
Answers: 1
ImportError: cannot import name 'SequentialFeatureSelector'
from sklearn.feature_selection import SequentialFeatureSelector
When I import SequentialFeatureSelector from sklearn.feature_selection I get an import error
ImportError: cannot import name 'Sequenti...
Pruthvi Amin
Votes: 0
Answers: 1
Replace multiple string containing a string with Pandas
This work for the string "AAA" :
df['B'] = df.A.str.replace(r'(^.*AAA.*$)', 'ZZZ', regex=True)
How can I do if I want to replace multiple string by 'ZZZ'?
df['B'] = df.A.str.replace(r'(^.*...
geen21
Votes: 0
Answers: 0
how can i print a histogram based on the counters of each flower species?(x axis- name of the flower y axis-the amount)
#counters
counter_setosa = 0
counter_versicolor = 0
counter_virginica = 0
#checking the name of the flowers and adding them to their counters
for item in df['species']:
#for setosas(in loo...
Mike Megrelishvili
Votes: 0
Answers: 1