Skip to content

Commit

Permalink
Create data_preparation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored May 11, 2024
1 parent 77371cb commit d4aab9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions user_behavior_analysis/data_preparation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pandas as pd

class DataPreparation:
def __init__(self, data_file):
self.data_file = data_file

def prepare_data(self):
"""
Prepares the data for user behavior analysis.
"""
data = pd.read_csv(self.data_file)
data = data.dropna()
return data

0 comments on commit d4aab9f

Please sign in to comment.