I am currently doing a project, and need to use CSV files to display information That part is figured out, but it won't allow me to append it with a known array
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import os
import glob
path = "/Users/kagemanden/Downloads/CSV Datapunkter"
csv_files = glob.glob(path + "/*.csv")
x = np.array([])
for i in csv_files:
print(i)
df = pd.read_csv(os.path.join(path, i))
g=np.array([len(df)])
print(g)
np.append(x,g)
print(x)
plt.bar(np.arange(len(x))+1,x)
plt.show()
It is the append function that doesn't work, the rest works just fine
Basically all i know, but the Append function is an integral funcction, and i don't know how to build the code without it