Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save audhiaprilliant/5eac0f10408793e370872570c3b3544e to your computer and use it in GitHub Desktop.

Select an option

Save audhiaprilliant/5eac0f10408793e370872570c3b3544e to your computer and use it in GitHub Desktop.
End to end machine learning model deployment using flask
# -------------------- TRAINING SET --------------------
# Import the training set
df_train = pd.read_csv(
filepath_or_buffer = 'https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_train.csv',
usecols = [i for i in range(1, 14)]
)
# Data dimension
print('Data dimension: {} rows and {} columns'.format(len(df_train), len(df_train.columns)))
df_train.head()
# -------------------- TESTING SET --------------------
# Import the testing set
df_test = pd.read_csv(
filepath_or_buffer = 'https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_test.csv'
)
# Data dimension
print('Data dimension: {} rows and {} columns'.format(len(df_test), len(df_test.columns)))
df_test.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment