image_output_1.png
from sklearn.model_selection import train_test_split

import pandas as pd

df = pd.read_json('/kaggle/input/news-headlines-dataset-for-sarcasm-detection/Sarcasm_Headlines_Dataset.json', lines=True)
dfv2 = pd.read_json('/kaggle/input/news-headlines-dataset-for-sarcasm-detection/Sarcasm_Headlines_Dataset_v2.json', lines=True)
df = pd.concat([df, dfv2])

from sklearn.model_selection import train_test_split
X = df.headline.values
y = df.is_sarcastic.values
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
(X_train.shape, y_train.shape, X_test.shape, y_test.shape)