@@ -2129,7 +2129,8 @@ def _write_bytes(self, value: bytes) -> None:
21292129
21302130 def _prepare_categoricals (self , data : DataFrame ) -> DataFrame :
21312131 """Check for categorical columns, retain categorical information for
2132- Stata file and convert categorical data to int"""
2132+ Stata file and convert categorical data to int
2133+ """
21332134
21342135 is_cat = [is_categorical_dtype (data [col ]) for col in data ]
21352136 self ._is_col_cat = is_cat
@@ -2171,7 +2172,8 @@ def _prepare_categoricals(self, data: DataFrame) -> DataFrame:
21712172 def _replace_nans (self , data : DataFrame ) -> DataFrame :
21722173 # return data
21732174 """Checks floating point data columns for nans, and replaces these with
2174- the generic Stata for missing value (.)"""
2175+ the generic Stata for missing value (.)
2176+ """
21752177 for c in data :
21762178 dtype = data [c ].dtype
21772179 if dtype in (np .float32 , np .float64 ):
@@ -3037,7 +3039,8 @@ def _write_header(
30373039 def _write_map (self ) -> None :
30383040 """Called twice during file write. The first populates the values in
30393041 the map with 0s. The second call writes the final map locations when
3040- all blocks have been written."""
3042+ all blocks have been written.
3043+ """
30413044 assert self ._file is not None
30423045 if not self ._map :
30433046 self ._map = dict (
@@ -3185,7 +3188,8 @@ def _write_file_close_tag(self) -> None:
31853188
31863189 def _update_strl_names (self ) -> None :
31873190 """Update column names for conversion to strl if they might have been
3188- changed to comply with Stata naming rules"""
3191+ changed to comply with Stata naming rules
3192+ """
31893193 # Update convert_strl if names changed
31903194 for orig , new in self ._converted_names .items ():
31913195 if orig in self ._convert_strl :
@@ -3194,7 +3198,8 @@ def _update_strl_names(self) -> None:
31943198
31953199 def _convert_strls (self , data : DataFrame ) -> DataFrame :
31963200 """Convert columns to StrLs if either very large or in the
3197- convert_strl variable"""
3201+ convert_strl variable
3202+ """
31983203 convert_cols = [
31993204 col
32003205 for i , col in enumerate (data )
0 commit comments