Jovian
⭐️
Sign In
In [1]:
import numpy as np
import pandas as pd
In [3]:
[1,2,3]
Out[3]:
[1, 2, 3]
In [4]:
(1,2,3)
Out[4]:
(1, 2, 3)
In [5]:
a = {"key":10, "key2":20, "key3":30}
In [6]:
a["key"]
Out[6]:
10
In [7]:
a.get("key")
Out[7]:
10
In [8]:
for i in a:
    print(i)
key key2 key3
In [9]:
def mulby2(num):
    num = num*2
    return num

In [10]:
mulby2(3)
Out[10]:
6
In [11]:
b = lambda num: num*2
In [12]:
import seaborn as sns
In [13]:
import pandas as pd
import numpy as np0
In [14]:
tips = sns.load_dataset("tips")
In [15]:
tips.head()
Out[15]:
In [16]:
tips.describe()
Out[16]:
In [17]:
sns.distplot(tips["total_bill"], kde=False)
Out[17]:
<matplotlib.axes._subplots.AxesSubplot at 0x14f2fa9160>
Notebook Image
In [18]:
sns.countplot(x="total_bill", data=tips, hue="sex", palette="winter_r")
Out[18]:
<matplotlib.axes._subplots.AxesSubplot at 0x14f34c35f8>
Notebook Image
In [19]:
sns.jointplot(x="total_bill", y="tip", data=tips, kind="hex", color="#0000ff")
Out[19]:
<seaborn.axisgrid.JointGrid at 0x14f88227b8>
Notebook Image
In [20]:
sns.pairplot(data=tips, palette="coolwarm")
Out[20]:
<seaborn.axisgrid.PairGrid at 0x14fe457f28>
Notebook Image
In [21]:
sns.rugplot(tips["tip"])
Out[21]:
<matplotlib.axes._subplots.AxesSubplot at 0x14fe992e10>
Notebook Image
In [22]:
sns.boxplot(x="sex",y="total_bill",data=tips, palette="autumn_r")
Out[22]:
<matplotlib.axes._subplots.AxesSubplot at 0x14feb09be0>
Notebook Image
In [23]:
tips.describe()
Out[23]:
In [24]:
tips.describe()
Out[24]:
In [26]:
import jovian
In [27]:
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jvn.io/shibanimoharana7/496a4be300604d9296280f4faedeaabe
In [ ]: