from sklearn.linear_model import LogisticRegression
import pandas as pd
# create a DataFrame
df = pd.DataFrame({'feature1': [1, 2, 3, 4],
'feature2': [5, 6, 7, 8], 'target': [0, 0, 1, 1]})
# define features and target
X = df[['feature1', 'feature2']]
y = df['target']
# create a logistic regression classifier
clf = LogisticRegression()
# fit the classifier to the data
clf.fit(X, y)
# predict the target values for new data
new_data = pd.DataFrame({'feature1': [5, 6], 'feature2': [9, 10]})
predictions = clf.predict(new_data)
print(predictions)