This is just a simple code that can take out some dataframes by using input dates. It works right, but my issues has suddenly appeared once more.
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import datetime
plt.rc('font', family = 'Malgun Gothic')
df = pd.read_csv('seoul.csv', encoding = 'cp949', index_col=False)
df.style.hide_index()
del df['지점']
a = input("날짜 입력 yyyy-mm-dd: ")
b = input("날짜 입력 yyyy-mm-dd: ")
df['날짜'] = pd.to_datetime(df['날짜'])
mask = (df['날짜']>=a) & (df['날짜']<=b)
df.loc[mask]
And this is the result.
How can I remove these numbers?(the row that I point out with a red box)
oh edit: change index_col=0
is not work since some of rows are in a different level.