Skip to content

Commit 75887cc

Browse files
made sure text column is always read as a string, resolving #13
1 parent 484cabf commit 75887cc

File tree

4 files changed

+225
-142
lines changed

4 files changed

+225
-142
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,6 @@ corrections2.csv
165165
.pylintrc
166166
htmlcov/*
167167
*.sublime-project
168-
*.sublime-workspace
168+
*.sublime-workspace
169+
170+
test_project.py

mudlark/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def normalise_csv(
125125
# Load the CSV into a DataFrame
126126
df = load_csv_file(input_path)
127127

128+
# Ensure the text column is always a string
129+
df[text_column] = df[text_column].astype(str)
130+
128131
quickgraph_id_columns_list = None
129132
# If the user has specified any 'quickgraph id columns',
130133
# load them into a list of strings.

0 commit comments

Comments
 (0)