TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
romasha ali
NA
94
38.3k
outliers detection using inter quartile range in python
Feb 6 2019 10:21 AM
i have a data of 29 rows and four columns namely 'date' , 'volume' , 'area' , 'variations' now i want to find out outliers using IQR methods using python but i am facing following error.
Code:
Q1 = data.quantile(0.25)
Q3 = data.quantile(0.75)
IQR = Q3 - Q1
print(IQR)
lower=(Q1 - 1.5 * IQR)
upper=(Q3 + 1.5 * IQR)
print((data < lower)|(data > upper))
Error:
TypeError: Could not operate array([nan]) with block values '<' not supported between instances of 'str' and 'float'
Reply
Answers (
0
)
Minimum how long time get approved a blog
Split csv file into small files and keep the column Header