Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #print("\n"*100)
- # Import packages
- import pandas as pd
- import matplotlib.pyplot as plt
- import numpy as np
- import os
- plt.close("all")
- df=pd.read_csv("Iris.csv")
- #print(df.iloc[0,:])
- #irisfile.keys()=([a,b,c,d])
- #irisfile.columns=["a","b","c","d","e"]
- #print(df.head())
- #print(irisfile.describe())
- #plt.hist(irisfile['sepal length in cm'])
- y=len(df['sepal length in cm'])
- #print(y)
- #plt.scatter(range(y),df['sepal length in cm'], marker='D', color='red' )
- #np.mean(irisfile['sepal length in cm'])
- plt.close("all")
- #plt.boxplot(df['sepal length in cm'])
- #df.iloc[1:3,1] = np.nan
- #print(df.isnull().sum())
- #print(df.sum())
- #print(df.columns[1].isspace())
- #
- #df=df.rename(columns={'sepal length in cm':' sepal length in cm'})
- #print((df.columns[1]).isspace())
- #print(df.head())
- print(df.get_dtype_counts())
- ##df=df.dropna(axis=1)
- #print(df.head())
- #x=df.cov(min_periods=None)
- #plt.hist(df.iloc[:,0])
- #plt.show()
- #df=df.dropna()
- #plt.hist(df.iloc[:,1])
- #plt.hist(df.iloc[:,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement