Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Outliers remain in the scatterplot even after removal
Post: Outliers remain in the scatterplot even after remo...
I am currently using the 'train.csv' file found here: https://www.kaggle.com/c/house-prices-ad...=train.csv
after scatterplotting the features 'YearBuilt' vs 'SalePrice', I am removing the csv rows c... |
|
d8a988 |
Data Science |
0 |
1,311 |
Mar-12-2021, 12:58 PM |
|
|
Thread: erased
Post: erased
|
d8a988 |
Data Science |
0 |
1,209 |
Nov-16-2020, 10:11 AM |
|
|
Thread: iteration
Post: iteration
I am trying to remove the first item from a list at every iteration if when subtracted from the next number on the list will give a result that is equal or greater than 1.
The following code produces ... |
|
d8a988 |
Data Science |
2 |
1,804 |
Oct-23-2020, 09:12 PM |
|
|
Thread: list subtraction
Post: RE: list subtraction
I thought so too, but if I set the range to len(aa)-1, I run into the same problem,
and it still doesn't explain why I get the result I expect anyway. Strange, no? |
|
d8a988 |
Data Science |
3 |
2,170 |
Oct-23-2020, 02:06 PM |
|
|
Thread: list subtraction
Post: list subtraction
I separated a list into sublists and now I want to subtract the second list from the first one, the third from the second and so on.
The following code
my_list = [1,2,4,5,6,9,0,34,56,89,31,42,5]
nn ... |
|
d8a988 |
Data Science |
3 |
2,170 |
Oct-23-2020, 01:07 PM |
|
|
Thread: head()
Post: RE: head()
Larz60:
that code only prints the amount of non-null values.
@perfringo:
your option has the same problem as "head()",
it only shows the first 5 and the last 5 rows
together with the first 2 and the l... |
|
d8a988 |
Data Science |
4 |
2,665 |
Sep-03-2020, 07:26 AM |
|
|
Thread: head()
Post: head()
the command 'head()' only partially displays the excel file I am dealing with.
How do I display the whole file?
these lines
data=pd.read_excel(r'excelfile.xlsx')
print(data.head())only print 5 rows ... |
|
d8a988 |
Data Science |
4 |
2,665 |
Sep-02-2020, 09:32 PM |
|
|
Thread: iteration stops
Post: RE: iteration stops
Thanks for replying.
However, unfortunately my question has not been answered.
I just need to know how to change my function to make it work like the first for loop I wrote.
I know that there are no ... |
|
d8a988 |
Data Science |
4 |
2,189 |
Aug-31-2020, 04:13 PM |
|
|
Thread: iteration stops
Post: iteration stops
quick question:
the following loop
list_nums= [i for i in range(15)]
for i in range(len(list_nums)):
if list_nums[i]<9:
print(list_nums[i])works as it should since all the... |
|
d8a988 |
Data Science |
4 |
2,189 |
Aug-31-2020, 12:12 PM |
|
|
Thread: cv2/numpy
Post: RE: cv2/numpy
|
d8a988 |
Data Science |
4 |
1,976 |
Apr-29-2020, 03:37 PM |
|
|
Thread: cv2/numpy
Post: RE: cv2/numpy
I am not sure what you mean with 'self' unless classes are involved.
I can only tell you that from what I am understanding, I would need an array to establish the x and y range, but I am not sure how... |
|
d8a988 |
Data Science |
4 |
1,976 |
Apr-29-2020, 03:29 PM |
|
|
Thread: cv2/numpy
Post: cv2/numpy
I am trying to obtain x,y coordinates by clicking on a graph in png format.
The following code works properly but it looks like that
x and y have a strange range, for instance y decreases its value ... |
|
d8a988 |
Data Science |
4 |
1,976 |
Apr-29-2020, 02:18 PM |
|
|
Thread: iloc
Post: RE: iloc
That's ok, I figured out another way.
All you need to do is to convert it to a list
outside the function. |
|
d8a988 |
Data Science |
7 |
3,059 |
Apr-27-2020, 10:15 AM |
|
|
Thread: excel data erase
Post: excel data erase
I am trying to write new data to excel, however, this code erases the old one.
Is there a way to slightly modify this code without erasing the old data ?
import xlwt
wb = xlwt.Workbook()
ws = wb.add... |
|
d8a988 |
Data Science |
1 |
2,149 |
Apr-27-2020, 10:04 AM |
|
|
Thread: iloc
Post: RE: iloc
same thing. Only the first line is printed. |
|
d8a988 |
Data Science |
7 |
3,059 |
Apr-25-2020, 08:52 AM |
|
|
Thread: iloc
Post: RE: iloc
I have tried another strategy but it doesn't always work:
the for loop itself prints all the lines the right way, (I am converting them to lists)
for i in range(9,100,18):
return(( (data.... |
|
d8a988 |
Data Science |
7 |
3,059 |
Apr-24-2020, 09:51 PM |
|
|
Thread: iloc
Post: RE: iloc
your line produces an error:
Error: File "C:/Users/file.py", line 11
print(data.iloc[[9,15,18], [5:8]])
^
SyntaxError: invalid syntax |
|
d8a988 |
Data Science |
7 |
3,059 |
Apr-24-2020, 07:59 PM |
|
|
Thread: iloc
Post: iloc
in pandas, in order to obtain the 8th row from the 4th to the 7th column,
the following command works properly:
(data.iloc[9, 5:8] )but what if I would like to repeat the same operation for other spec... |
|
d8a988 |
Data Science |
7 |
3,059 |
Apr-23-2020, 08:57 PM |
|
|
Thread: poisson regression
Post: RE: poisson regression
I was certainly not aware of that option, and thanks for letting me know.
However, if possible, I would like to stick to lists, since it gives me
more freedom to do what I need to do,
for instance in ... |
|
d8a988 |
Data Science |
2 |
2,719 |
Apr-23-2020, 07:28 PM |
|
|
Thread: poisson regression
Post: poisson regression
I am working with poisson regression with pandas
and I have a question about this specific command poisson(y,x).
with y,x being respectively the dependent, independent variables.
the following code ... |
|
d8a988 |
Data Science |
2 |
2,719 |
Apr-23-2020, 11:27 AM |