ChatGPT-Powered Data Analysis on Customer Click
Bacis Requirements
This project involves building a simple data analysis tool that leverages ChatGPT for interactive data exploration. It will involves data science and API usage, focusing on creating a user-friendly application. In this project,
we want to do the Clickstream analysis with the help of ChatGPT.
You are expected to:
- Develop a Basic Web Application using Flask:
- Set up a simple Flask app for handling data uploads and ChatGPT interactions.
- Implement basic user authentication with login functionality.
- Integrate ChatGPT API:
- Connect to the ChatGPT API(or passing the message to the ChatGPT web) for processing user queries related to data analysis.
- Allow users to ask questions about datasets and receive insights.
- Data Upload and Processing:
- Enable users to upload datasets in CSV format.
- Use Pandas for basic data operations like summary statistics and data cleaning.
- Interactive Data Visualization:
- Provide simple visualizations using libraries like Matplotlib or Plotly.
- Update charts based on user input and ChatGPT suggestions.
- Security and User Experience:
- Ensure secure data handling with basic validation.
- Implement a user-friendly interface with clear instructions.
- Data Analysis Summary: After the data analysis, it requires to answer some basic questions about the Customer, for example:
- How often the same customer revisiting the store (online or physical), how often the same customer revisiting the store (online or physical)
- How is the customers’ sentiment according to the consumer’s comments/comment scores on products in social media dataset.
- The customers’ shopping behaviors based on their clickstream (e.g. visit frequency, visit location and duration, web browsing/location
history, purchasing items, demographics, etc.) - Which kind of product of the customer will buy in the near future
Project Analysis
Datasets: Clickstream
Steps:
- user registration and login
- clickstream data upload
- data analysis using Python
- simple visualizations using Python
- answer some basic questions besed on the result of data analysis by integrating ChatGPT API
Questions:
- “Ensure secure data handling with basic validation”是什么意思?
技术栈:
- 前端:Vue框架 + Axios(http库)
- 后端:Flask框架 + MySQL数据库
HTTP客户端:实际上就是前端,使用Axios和Vue框架集成
HTTP服务器端:Flask框架 + MySQL数据库
进阶:Running Flask on Kubernetes
Axios是一个前端库,主要用于在浏览器中发送HTTP请求。它可以让你通过JavaScript与后端服务器进行通信,获取数据或提交信息。
Yarn是一个JavaScript包管理工具。管理和JavaScript相关的包。类似于Python中的pip,也是一个包管理工具。其实还是使用npm包进行安装。
Node是什么?Node.js是一个开源的、跨平台的 JavaScript运行时环境。可以说,JavaScript借助Node.js的编译器在机器上运行。
用户登录和注册
登录:用户名username 和 密码password
注册:用户名username 和 密码password 和 邮箱email
密码存储时,需要对原始密码进行加密,下面是加密用的包
from werkzeug.security import generate_password_hash, check_password_hash