导入以下库后,我试图从here.
读取CSV文件。 `import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.metrics import r2_score
import statsmodels.api as sm
from pandas.core import datetools`
`data = pd.read_csv("https://github.com/marcopeix/ISL-linear-`
regression/blob/master/data/Advertising.csv", sep='delimiter',
header=None,` `engine='python')`
请允许我解释一下为什么我得到HTML标签作为输出的原因。
`data.head(5)`
` 0
0 <!DOCTYPE html>
1 <html lang="en">
2 <head>
3 <meta charset="utf-8">
4 <link rel="dns-prefetch" href="https://assets-...`