Accuracy not coming

in this i dont know why i got only 50%accuracy result

Hi @kushal1998
Can u plz elaborate the model u are using
Also 50percent accuracy will be a threshold because there are 2 classes .
If u randomly try to classify the data there is .5 probability of occurrence of any of two class

i am using sklearn library . byt when i am calculating the accuracy it is showing 99% accuracy

heres the code:-
import numpy as np
import pandas as pd

import matplotlib.pyplot as plt

import sklearn
from sklearn.preprocessing import scale
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split

x = pd.read_csv(‘Logistic_X_Train.csv’)
y = pd.read_csv(‘Logistic_Y_Train.csv’)
X = scale(x)
LogReg = LogisticRegression()

LogReg.fit(x,y)
print(LogReg.score(x,y))

xx = pd.read_csv(‘Logistic_X_Train.csv’)

S = scale(xx)
print(S)
y_pred = LogReg.predict(xx)
print(y_pred)
print(LogReg.score(xx,y))

u are checking accuracy at train dataset
u have to submit predicted results on test dtaset.