fork download
  1. import pandas as pd
  2.  
  3. # Assuming you have a DataFrame named 'df' with a column named 'Day' containing integer values
  4. # Example DataFrame:
  5. df = pd.DataFrame({'Day': [1, 2, 3, 4, 5]})
  6.  
  7. # Convert the 'Day' column to string
  8. df['Day'] = df['Day'].astype(str)
  9.  
  10. # Print the updated DataFrame
  11. print(df)
Success #stdin #stdout 0.31s 58240KB
stdin
Standard input is empty
stdout
  Day
0   1
1   2
2   3
3   4
4   5