MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _get_cell_text

Function _get_cell_text

server/services/batch_parser.py:105–115  ·  view source on GitHub ↗
(row: Dict[str, Any], column: Optional[str])

Source from the content-addressed store, hash-verified

103
104
105def _get_cell_text(row: Dict[str, Any], column: Optional[str]) -> str:
106 if not column:
107 return ""
108 value = row.get(column)
109 if value is None:
110 return ""
111 if isinstance(value, float) and pd.isna(value):
112 return ""
113 if pd.isna(value):
114 return ""
115 return str(value).strip()
116
117
118def _parse_json_list(

Callers 1

_parse_dataframeFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected