SciPy - Integration with Scientific Ecosystem
What is the issue with this code snippet?
import pandas as pd
from scipy import stats
df = pd.DataFrame({'X': [1, 2, 3], 'Y': [4, 5, 6]})
result = stats.ttest_ind(df['X'], df['Y'], axis=1)
print(result.statistic)