Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def export_df(self):
'''
Export Pandas DataFrame/
'''
df = data_formats.dat_to_df(self)
# drop tuple categories if downsampling
if self.is_downsampled:
df.columns = self.dat['nodes']['col']
df.index = self.dat['nodes']['row']
return df