Code Skripsi

This is full code for prediction of fuel adulteration
This commit is contained in:
2025-07-11 06:25:57 +00:00
commit fe7bb529ed
15 changed files with 4226 additions and 0 deletions

22
Combine.py Normal file
View File

@ -0,0 +1,22 @@
import pandas as pd
labels = [100, 90, 80, 70, 60, 50]
df = pd.DataFrame()
for label in labels:
df_temp = pd.read_csv(f"Fuel_{label}_new.csv")
df = pd.concat([df, df_temp], axis=0)
df.to_csv("Fuel_All.csv", index=False)
# import pandas as pd
# labels = [100,90,80,70,60,50]
# df = pd.DataFrame()
# for label in labels:
# df_temp = pd.read_excel(f"Fuel_{label}_new.xlsx")
# df = pd.concat([df, df_temp], axis=0)
# df.to_excel("Fuel_All_External.xlsx", index=False)