TUB-NLP-OpenData / usability_research_data

3 stars 0 forks source link

remove redu, and make sure that everything is working fine... #18

Open vwoloszyn opened 3 years ago

vwoloszyn commented 3 years ago

Remove the folder "redu", and make sure that "bopi" is working fine.

andrewedrictristan commented 3 years ago

Hi Vinicius,

I have removed the redu and replace it with bopi and it works fine. However, I still have some question related to the preview method(): I have changed before to bopi.repository("11303/11457").datasets().get("app vendor SAR data.csv").preview() bopi.repository("11303/11457").datasets().get("app vendor SAR data.csv").describe() But it doesn't work now, because you use return d.content at get() method, where we can directly preview the data through dataframe, e.g : bopi.repository("11303/11457").datasets().get("app vendor SAR data.csv").head() or .tail

Are we on the same side with that structure or do you have another way?

andrewedrictristan commented 3 years ago

by adding only return d at method get()m i can use directly methods below:

bopi.repository("11303/11457").datasets().get("app vendor SAR data.csv").preview() bopi.repository("11303/11457").datasets().get("app vendor SAR data.csv").describe()


    def get(self, filename):
        for d in self.datasets:
            if str(d).lower() == str(filename).lower():
                d.download()
                return d
        raise Exception("Sorry, file not found")