
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
to.excel했는데 to가 이상하다는거 같습니다.

작성한 코드 및 에러 메세지
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-13-1fa1d306d432> in <cell line: 3>()
1 df_listed = df[df['stock_code'].notnull()]
2 df_listed.count()
----> 3 df_listed.to.xcel('상장종목.xlsx')
/usr/local/lib/python3.10/dist-packages/pandas/core/generic.py in __getattr__(self, name)
5900 ):
5901 return self[name]
-> 5902 return object.__getattribute__(self, name)
5903
5904 def __setattr__(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'to'
