curiousily / Getting-Things-Done-with-Pytorch

Jupyter Notebook tutorials on solving real-world problems with Machine Learning & Deep Learning using PyTorch. Topics: Face detection with Detectron 2, Time Series anomaly detection with LSTM Autoencoders, Object Detection with YOLO v5, Build your first Neural Network, Time Series forecasting for Coronavirus daily cases, Sentiment Analysis with BER
https://mlexpert.io
Apache License 2.0
2.35k stars 632 forks source link

arff2pandas is not supported anymore. Could anyone find alternative for this library? #19

Closed UlugbekAbdimanabov closed 2 years ago

chuanzhidong commented 1 year ago

arff2pandas is not supported anymore. Could anyone find alternative for this library? on Jun 7, 2022

I saw the same problem, did you solve it use any alternatives?

chuanzhidong commented 1 year ago

The answer provided by Sagar Dawda can solve the probelm. Sagar suggested to use scipy.io.arff. We can find from this page: https://stackoverflow.com/questions/46401209/how-to-convert-the-arff-object-loaded-from-a-arff-file-into-a-dataframe-format. I quote the answer here:

import numpy as np
import pandas as pd
from scipy.io.arff import loadarff 

raw_data = loadarff('Training Dataset.arff')
df_data = pd.DataFrame(raw_data[0])