It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory
import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, filename))
You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using "Save & Run All"
You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns
train=pd.read_csv("../input/omicron-covid19-variant-daily-cases/covid-variants.csv")
train.head()
train.isnull().sum()
train['location'].value_counts()
omicron=train[train['variant']=='Omicron'] delta=train[train['variant']=='Delta'] beta=train[train['variant']=='Beta']
omicron_sum=omicron.groupby("date").sum() delta_sum=delta.groupby("date").sum() beta_sum=beta.groupby("date").sum() CASES AROUND WORLD
plt.figure(figsize=(15,6)) plt.xticks(rotation=90) sns.lineplot(x=omicron_sum.index,y=np.log1p(omicron_sum['num_sequences']),color='red',linewidth='3') plt.title('Omicron Cases All Over World')
plt.figure(figsize=(15,6)) plt.xticks(rotation=90) sns.lineplot(x=delta_sum.index,y=np.log1p(delta_sum['num_sequences']),color='red',linewidth='3') plt.title('Delta Cases All Over World')
plt.figure(figsize=(15,6)) plt.xticks(rotation=90) sns.lineplot(x=beta_sum.index,y=np.log1p(beta_sum['num_sequences']),color='red',linewidth='3') plt.title('Beta Cases All Over World') Beta Variant
plt.figure(figsize=(15,6)) plt.xticks(rotation=90) sns.lineplot(x=beta_india['date'],y=np.log1p(beta_india['num_sequences']),label='India',linewidth='3') sns.lineplot(x=beta_Nepal['date'],y=np.log1p(beta_Nepal['num_sequences']),label='Nepal',linewidth='3') sns.lineplot(x=beta_Pakistan['date'],y=np.log1p(beta_Pakistan['num_sequences']),label='Pakistan',linewidth='3') sns.lineplot(x=beta_Bangladesh['date'],y=np.log1p(beta_Bangladesh['num_sequences']),label='Bangladesh',linewidth='3') plt.title('Beta variant around different countries')