pip install Pyforest
Collecting Pyforest
  Downloading pyforest-1.0.3.tar.gz (14 kB)
Building wheels for collected packages: Pyforest
  Building wheel for Pyforest (setup.py): started
  Building wheel for Pyforest (setup.py): finished with status 'done'
  Created wheel for Pyforest: filename=pyforest-1.0.3-py2.py3-none-any.whl size=13720 sha256=18e08121d5ee96f79c928bf37f744f0c937b1253580c5189dc7f68057ca46f2c
  Stored in directory: c:\users\mrsid\appdata\local\pip\cache\wheels\72\b6\6c\b593d021f7e83f481c5208bc23df0084bcfbeb5b141352b882
Successfully built Pyforest
Installing collected packages: Pyforest
Successfully installed Pyforest-1.0.3
Note: you may need to restart the kernel to use updated packages.
df = pd.read_csv('http://winterolympicsmedals.com/medals.csv')
df.head()
Year City Sport Discipline NOC Event Event gender Medal
0 1924 Chamonix Skating Figure skating AUT individual M Silver
1 1924 Chamonix Skating Figure skating AUT individual W Gold
2 1924 Chamonix Skating Figure skating AUT pairs X Gold
3 1924 Chamonix Bobsleigh Bobsleigh BEL four-man M Bronze
4 1924 Chamonix Ice Hockey Ice Hockey CAN ice hockey M Gold
active_imports() # It imports only those libraries that are in use 
import pandas as pd
['import pandas as pd']
lst1 = [1,2,3,4,5]
lst2 = [6,7,8,9,10]

plt.plot(lst1,lst2)
plt.xlabel("X-axis")
plt.ylabel("Y-axis")
plt.show()
np.array([1,2,3,4,5])
array([1, 2, 3, 4, 5])
active_imports()
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
['import matplotlib.pyplot as plt',
 'import pandas as pd',
 'import numpy as np']
df1= pd.read_csv("C:\\Users\\mrsid\\Desktop\\30 days of ML challenge\\NumPy and Pandas\\mercedesbenz.csv")
df1.head()
ID y X0 X1 X2 X3 X4 X5 X6 X8 ... X375 X376 X377 X378 X379 X380 X382 X383 X384 X385
0 0 130.81 k v at a d u j o ... 0 0 1 0 0 0 0 0 0 0
1 6 88.53 k t av e d y l o ... 1 0 0 0 0 0 0 0 0 0
2 7 76.26 az w n c d x j x ... 0 0 0 0 0 0 1 0 0 0
3 9 80.62 az t n f d x l e ... 0 0 0 0 0 0 0 0 0 0
4 13 78.02 az v n f d h d n ... 0 0 0 0 0 0 0 0 0 0

5 rows × 378 columns

sns.distplot(df1['y'])
<matplotlib.axes._subplots.AxesSubplot at 0x27bb681d3c8>
active_imports()
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
['import matplotlib.pyplot as plt',
 'import seaborn as sns',
 'import pandas as pd',
 'import numpy as np']