shaheerawan3 commited on
Commit
739ad6f
·
verified ·
1 Parent(s): e403d05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,9 +43,9 @@ if 'Close' in data.columns:
43
  st.write("Data Types:")
44
  st.write(data.dtypes)
45
 
46
- # Display unique values in the 'Close' column for debugging
47
  st.write("Unique values in 'Close' column:")
48
- st.write(data['Close'].unique())
49
 
50
  # Ensure 'Close' prices are numeric and handle any missing values
51
  try:
 
43
  st.write("Data Types:")
44
  st.write(data.dtypes)
45
 
46
+ # Display unique values in the 'Close' column for debugging (corrected to use Series)
47
  st.write("Unique values in 'Close' column:")
48
+ st.write(pd.Series(data['Close']).unique()) # Use pd.Series to ensure we're working with a Series
49
 
50
  # Ensure 'Close' prices are numeric and handle any missing values
51
  try: