Skip to content

Commit

Permalink
feat: add request call
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabiana Clemente authored and fabclmnt committed May 6, 2024
1 parent dba8fcd commit d50ec07
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/ydata_profiling/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,14 @@ def analytics_features(dataframe, datatype: bool, report_type: bool):
python_version = ".".join(platform.python_version().split(".")[:2])

try:
request_syntax = f"{endpoint}version={package_version}" \
f"&python_version={python_version}" \
f"&report_type={report_type}" \
f"&dataframe={dataframe}" \
f"&datatype={datatype}" \
f"&os={platform.system()}" \
f"&gpu={str(gpu_present)}"

#requests.get(request_syntax)
print(request_syntax)
request_message = f"{endpoint}version={package_version}" \
f"&python_version={python_version}" \
f"&report_type={report_type}" \
f"&dataframe={dataframe}" \
f"&datatype={datatype}" \
f"&os={platform.system()}" \
f"&gpu={str(gpu_present)}"

requests.get(request_message)
except Exception:
pass

0 comments on commit d50ec07

Please sign in to comment.