succinctness
This commit is contained in:
1 parent
da99a95fd8
commit
f9359d1c98
5 files changed
+7
-9
No files matched your search
@@ -16,8 +16,8 @@ def get_data():
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
#r = requests.get(url, headers=header)
|
||||||
dfs = list(pd.read_html(r.text))
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ def get_data():
|
|||||||
"X-Requested-With": "XMLHttpRequest"
|
"X-Requested-With": "XMLHttpRequest"
|
||||||
}
|
}
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
#r = requests.get(url, headers=header)
|
||||||
dfs = pd.read_html(r.text)
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = dfs[0]
|
df = dfs[0]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ def get_data():
|
|||||||
}
|
}
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
r = requests.get(url, headers=header)
|
||||||
dfs = list(pd.read_html(r.text))
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ def get_data():
|
|||||||
"X-Requested-With": "XMLHttpRequest"
|
"X-Requested-With": "XMLHttpRequest"
|
||||||
}
|
}
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
dfs = list(pd.read_html(r.text))
|
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
||||||
|
|||||||
+1
-2
@@ -17,8 +17,7 @@ def get_data():
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
dfs = list(pd.read_html(r.text))
|
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
||||||
|
|||||||
Reference in new issue
Block a user