Currently, I'm looking for python packages for audio pitch detection (f0 frequency). I then found librosa and tried the piptrack function to track pitch. However, the result is a 2D array (shown as below) instead of a 1D array.

The thing is, I want to get a simple line chart describing the pitch of audio (just like other packages such as crepe, aubio, and parselmouth).
So how can I get a similar result using librosa?