I would recommend to use either XeLaTeX or LuaLaTeX and a font, that provides the used symbols, e.g.
% Use this with XeLaTeX or LuaLaTeX not PDFLaTeX.
\documentclass{article}
\usepackage{libertinus}
\begin{document}
\begin{verbatim}
█ [1:0x561b3f574358] <list>
├─[2:0x561b3e9cd938] <dbl>
├─[3:0x561b3e9cd900] <dbl>
└─[4:0x561b3e9cd8c8] <dbl>
\end{verbatim}
\end{document}

If you want to use PDFLaTeX, you can declare the missing unicode characters, e.g., using \rule commands:
% Use this with PDFLaTeX, not XeLaTeX or LuaLaTeX!
\documentclass{article}
\DeclareUnicodeCharacter{2588}{\rule{1ex}{\ht\strutbox}}
\DeclareUnicodeCharacter{251C}{\rule[-\dp\strutbox]{.4pt}{\baselineskip}%
\rule[.2\baselineskip]{1ex}{.4pt}}
\DeclareUnicodeCharacter{2500}{\rule[.2\baselineskip]{1ex}{.4pt}}
\DeclareUnicodeCharacter{2514}{\rule[.2\baselineskip]{.4pt}{.5\baselineskip}%
\rule[.2\baselineskip]{1ex}{.4pt}}
\begin{document}
\begin{verbatim}
█ [1:0x561b3f574358] <list>
├─[2:0x561b3e9cd938] <dbl>
├─[3:0x561b3e9cd900] <dbl>
└─[4:0x561b3e9cd8c8] <dbl>
\end{verbatim}
\end{document}

\tracinglostchars=3, so a missing character is considered an error, instead of failing silently and hoping you notice. – Davislor Jul 12 '23 at 23:36