Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

process.py 181 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
  1. import pandas as pd
  2. df = pd.read_csv('processed.cleveland.data')
  3. df = df.dropna()
  4. df['num'] = (df['num']>0)+0
  5. print(df['num'].unique())
  6. df.to_csv('./heartDisease.csv',index=False)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...