回答編集履歴
1
追記
    
        answer	
    CHANGED
    
    | 
         @@ -1,9 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            文字列`Series`の要素にアクセスするには`str`アクセサが有用です。`Series`の`replace`メソッドは単純に要素文字列に対してそれぞれ置換を行ってくれる訳ではありません(もっと違う用途で使うものです)。
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            以下のどちらかがいいのでは。
         
     | 
| 
       2 
4 
     | 
    
         
             
            ```python
         
     | 
| 
       3 
5 
     | 
    
         
             
            kakei['支出'] = pd.to_numeric(kakei['支出'].str.replace(',',''))
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
6 
     | 
    
         
             
            ```
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
            ```python
         
     | 
| 
      
 8 
     | 
    
         
            +
            kakei['支出'] = kakei['支出'].str.replace(',','').astype(int)
         
     | 
| 
      
 9 
     | 
    
         
            +
            ```
         
     | 
| 
       7 
10 
     | 
    
         | 
| 
       8 
11 
     | 
    
         
             
            [pandas.Series.str — pandas 1.0.3 documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.html)
         
     | 
| 
       9 
12 
     | 
    
         
             
            [pandas.Series.replace — pandas 1.0.3 documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.replace.html)
         
     |