Spaces:
Sleeping
Sleeping
change sns.pairplot to st.image
Browse files
eda.py
CHANGED
@@ -16,7 +16,7 @@ def loading():
|
|
16 |
|
17 |
@st.cache_data
|
18 |
def load_data():
|
19 |
-
return pd.read_csv('Transactions Data.csv')
|
20 |
|
21 |
def app():
|
22 |
st.title('Exploratory Data Analysis')
|
@@ -329,8 +329,7 @@ def app():
|
|
329 |
# Pairplot to visualize relationships
|
330 |
st.subheader('Pairplot of Numeric Variables')
|
331 |
with st.spinner('Loading...'):
|
332 |
-
|
333 |
-
st.pyplot(fig)
|
334 |
st.write('The pair plot provides a detailed view of the relationships between the numeric variables: `amount`, `oldbalanceOrg`, `newbalanceOrig`, `oldbalanceDest`, and `newbalanceDest`.')
|
335 |
st.markdown('- **Strong Linear Relationships**: There are clear linear relationships between `oldbalanceOrg` and `newbalanceOrig`, as well as between `oldbalanceDest` and `newbalanceDest`. This indicates that the balance before and after transactions are highly correlated.')
|
336 |
st.markdown('- **Clustered Data Points**: Most data points are clustered near the lower end of the scales, especially for `amount` and `balances`, suggesting a high frequency of small-value transactions.')
|
|
|
16 |
|
17 |
@st.cache_data
|
18 |
def load_data():
|
19 |
+
return pd.read_csv('../Transactions Data.csv')
|
20 |
|
21 |
def app():
|
22 |
st.title('Exploratory Data Analysis')
|
|
|
329 |
# Pairplot to visualize relationships
|
330 |
st.subheader('Pairplot of Numeric Variables')
|
331 |
with st.spinner('Loading...'):
|
332 |
+
st.image('pairplot.png')
|
|
|
333 |
st.write('The pair plot provides a detailed view of the relationships between the numeric variables: `amount`, `oldbalanceOrg`, `newbalanceOrig`, `oldbalanceDest`, and `newbalanceDest`.')
|
334 |
st.markdown('- **Strong Linear Relationships**: There are clear linear relationships between `oldbalanceOrg` and `newbalanceOrig`, as well as between `oldbalanceDest` and `newbalanceDest`. This indicates that the balance before and after transactions are highly correlated.')
|
335 |
st.markdown('- **Clustered Data Points**: Most data points are clustered near the lower end of the scales, especially for `amount` and `balances`, suggesting a high frequency of small-value transactions.')
|