coderxio / sagerx

Open drug data pipelines curated by pharmacists.
https://coderx.io/sagerx
Other
45 stars 12 forks source link

updated df to remove index column from output #279

Closed leemlb06pmi closed 5 months ago

leemlb06pmi commented 5 months ago

Resolves #277

Explanation

made a small change to the dataframe as it gets added to the dictionary of mart instance dataframes so that we leave off the index column.

This will work for any number of additional marts we decide to add down the road

Rationale

by request!

Tests

I verified the output file:

277_pic
testing logs ``` ```
lprzychodzien commented 5 months ago

Have you tried changing the parameter in the to_csv function to false? https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html

mart_dfs[k].to_csv(csv_buffer, index=False)