I have a Pandas Series, which should be printed with a string. The result of the following code does not look pretty.
series1 = pd.Series({'a':1, 'b':2})
print(f"The series is: {series1}")
Result:
The series is: a 1
b 2
What I want:
The series is: a 1
b 2
Would it be possible with a simple code?
print(f"The series is:\n{series1}")
May be a possible solution, but not perfectly what I want.