MCPcopy
hub / github.com/pandas-dev/pandas / _combine_lines

Method _combine_lines

pandas/io/json/_json.py:963–969  ·  view source on GitHub ↗

Combines a list of JSON objects into one JSON object.

(self, lines)

Source from the content-addressed store, hash-verified

961 return filepath_or_buffer
962
963 def _combine_lines(self, lines) -> str:
964 """
965 Combines a list of JSON objects into one JSON object.
966 """
967 return (
968 f"[{','.join([line for line in (line.strip() for line in lines) if line])}]"
969 )
970
971 @overload
972 def read(self: JsonReader[Literal["frame"]]) -> DataFrame: ...

Callers 2

_read_ujsonMethod · 0.95
__next__Method · 0.95

Calls 2

stripMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected