Python Data Mining

From rbachwiki
Revision as of 16:30, 10 January 2020 by Bacchas (talk | contribs) (Created page with "==Analyze csv files using pandas== import pandas as pd df=pd.read_csv('filename.csv) df.shape # prints the number of columns and rows df.info() # prints out the names and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Analyze csv files using pandas

import pandas as pd
df=pd.read_csv('filename.csv)
df.shape # prints the number of columns and rows
df.info() # prints out the names and datatypes of all the columns