ML code error :unsupported operand type(s) for -: 'DatetimeIndex' and 'datetime.date' [on hold]
$begingroup$
I am getting the above mentioned error for the code given below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
media = pd.read_csv('mediacompany.csv')
media = media.drop('Unnamed: 7',axis = 1)
media.head()
media['Date'] = pd.to_datetime(media['Date'])
media.head()
from datetime import date
d0 = date(2017, 2, 28)
d1 = media.Date
delta = d1 - d0
they point out the error to be in last line of code i.e delta = d1 - d0
machine-learning python anaconda
New contributor
$endgroup$
put on hold as off-topic by Stephen Rauch♦ 11 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be about data science, within the scope defined in the help center." – Stephen Rauch
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
$begingroup$
I am getting the above mentioned error for the code given below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
media = pd.read_csv('mediacompany.csv')
media = media.drop('Unnamed: 7',axis = 1)
media.head()
media['Date'] = pd.to_datetime(media['Date'])
media.head()
from datetime import date
d0 = date(2017, 2, 28)
d1 = media.Date
delta = d1 - d0
they point out the error to be in last line of code i.e delta = d1 - d0
machine-learning python anaconda
New contributor
$endgroup$
put on hold as off-topic by Stephen Rauch♦ 11 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be about data science, within the scope defined in the help center." – Stephen Rauch
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
$begingroup$
I am getting the above mentioned error for the code given below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
media = pd.read_csv('mediacompany.csv')
media = media.drop('Unnamed: 7',axis = 1)
media.head()
media['Date'] = pd.to_datetime(media['Date'])
media.head()
from datetime import date
d0 = date(2017, 2, 28)
d1 = media.Date
delta = d1 - d0
they point out the error to be in last line of code i.e delta = d1 - d0
machine-learning python anaconda
New contributor
$endgroup$
I am getting the above mentioned error for the code given below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
media = pd.read_csv('mediacompany.csv')
media = media.drop('Unnamed: 7',axis = 1)
media.head()
media['Date'] = pd.to_datetime(media['Date'])
media.head()
from datetime import date
d0 = date(2017, 2, 28)
d1 = media.Date
delta = d1 - d0
they point out the error to be in last line of code i.e delta = d1 - d0
machine-learning python anaconda
machine-learning python anaconda
New contributor
New contributor
edited 7 mins ago
rosh
New contributor
asked 12 hours ago
roshrosh
12
12
New contributor
New contributor
put on hold as off-topic by Stephen Rauch♦ 11 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be about data science, within the scope defined in the help center." – Stephen Rauch
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Stephen Rauch♦ 11 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be about data science, within the scope defined in the help center." – Stephen Rauch
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes