Advertisement
inboxrusty

Untitled

Feb 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #
  2.  
  3. #print("\n"*100)
  4.  
  5. # Import packages
  6. import pandas as pd
  7. import matplotlib.pyplot as plt
  8. import numpy as np
  9. import os
  10.  
  11. plt.close("all")
  12. df=pd.read_csv("Iris.csv")
  13. #print(df.iloc[0,:])
  14. #irisfile.keys()=([a,b,c,d])
  15. #irisfile.columns=["a","b","c","d","e"]
  16.  
  17. #print(df.head())
  18. #print(irisfile.describe())
  19. #plt.hist(irisfile['sepal length in cm'])
  20. y=len(df['sepal length in cm'])
  21. #print(y)
  22.  
  23. #plt.scatter(range(y),df['sepal length in cm'], marker='D', color='red' )
  24. #np.mean(irisfile['sepal length in cm'])
  25.  
  26. plt.close("all")
  27. #plt.boxplot(df['sepal length in cm'])
  28.  
  29. #df.iloc[1:3,1] = np.nan
  30. #print(df.isnull().sum())
  31. #print(df.sum())
  32.  
  33. #print(df.columns[1].isspace())
  34. #
  35. #df=df.rename(columns={'sepal length in cm':' sepal length in cm'})
  36. #print((df.columns[1]).isspace())
  37.  
  38.  
  39. #print(df.head())
  40. print(df.get_dtype_counts())
  41.  
  42. ##df=df.dropna(axis=1)
  43. #print(df.head())
  44. #x=df.cov(min_periods=None)
  45. #plt.hist(df.iloc[:,0])
  46. #plt.show()
  47. #df=df.dropna()
  48. #plt.hist(df.iloc[:,1])
  49. #plt.hist(df.iloc[:,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement