I want to draw the close price (y-axis) and date (x-axis) with python, but the error shows that I need to convert date from string to float.
Here is coding:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as dates
import datetime
from pandas import DataFrame, Series
df = pd.read_csv('C:/Users/Vicky/Desktop/pythontest/T1706dailyrecord.csv')
df.columns = [1,2,3,4,5]
print(df)
plt.plot(df[1], df[3])