How would I insert a URL link at the top cell of my pandas dataframe?
myurl='www.xyz.com'
Let's say this is my code:
import pandas as pd
import numpy as np
dates = pd.date_range('20130101', periods=4)
df = pd.DataFrame(np.random.randn(6,4), columns=dates)
Output of the code:
2013-01-01 2013-01-02 2013-01-03 2013-01-04
0 -1.359604 2.236055 -1.247478 -0.466911
1 0.632732 1.177155 0.572847 0.024058
2 0.301902 -0.118306 -1.162931 0.180230
3 -0.851283 -0.427693 0.070223 -1.469248
4 -0.309400 0.935575 1.938843 1.898458
5 -0.598406 0.519100 -0.700112 0.539412
Desired output1:
www.xyz.com
2013-01-01 2013-01-02 2013-01-03 2013-01-04
0 -1.359604 2.236055 -1.247478 -0.466911
1 0.632732 1.177155 0.572847 0.024058
2 0.301902 -0.118306 -1.162931 0.180230
3 -0.851283 -0.427693 0.070223 -1.469248
4 -0.309400 0.935575 1.938843 1.898458
5 -0.598406 0.519100 -0.700112 0.539412
Desired output2:
2013-01-01 2013-01-02 2013-01-03 2013-01-04
0 www.xyz.com
1 -1.359604 2.236055 -1.247478 -0.466911
2 0.632732 1.177155 0.572847 0.024058
3 0.301902 -0.118306 -1.162931 0.180230
4 -0.851283 -0.427693 0.070223 -1.469248
5 -0.309400 0.935575 1.938843 1.898458
6 -0.598406 0.519100 -0.700112 0.539412