NextGrocery / load_data.py
student-abdullah's picture
Initial commit with full project
f8c0ae2
raw
history blame contribute delete
308 Bytes
# Importing libraries
import pandas as pd
# Load data
df = pd.read_csv("Basket.csv", header=None, names=range(20))
# Loop to convert all values to string and discard NaN values
items = []
for i in range(len(df)):
items.append([str(df.values[i, j]) for j in range(20) if str(df.values[i, j]) != "nan"])