Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion collectoss/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def route_transform(func: Any, args: Any=None, kwargs: dict=None, repo_url_base:
# if group_by is defined it groups by the group_by value
# and uses the aggregate to determine the operation performed
if group_by is not None:
data = data.group_by(group_by).aggregate(aggregate)
data = data.groupby(group_by).aggregate(aggregate)

# This code block is resampling the pandas dataframe, here is the documentation for it
# https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.resample.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@
train_path = os.path.join(ROOT_PROJECT_REPO_DIRECTORY, "tasks", "data_analysis", "message_insights", "train_data")

def replace_all(text, dic):
if(sys.version_info[0] < 3):
for i, j in dic.iteritems():
text = text.replace(i, j)
else:
for i, j in dic.items():
text = text.replace(i, j)
for i, j in dic.items():
text = text.replace(i, j)
return text

stemmer = SnowballStemmer("english")
Expand Down
Loading