Skip to content

Commit

Permalink
[#71] loading csv data to pandas dataframe with datatype set to string
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Sep 19, 2024
1 parent 280a8cc commit cde9cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hsclient/hydroshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ def as_data_object(self, agg_path: str) -> 'pandas.DataFrame':
if pandas is None:
raise Exception("pandas package not found")

return self._get_data_object(agg_path=agg_path, func=pandas.read_csv, comment="#")
return self._get_data_object(agg_path=agg_path, func=pandas.read_csv, comment="#", dtype="string",
engine="python")

def save_data_object(self, resource: 'Resource', agg_path: str, as_new_aggr: bool = False,
destination_path: str = "") -> 'Aggregation':
Expand Down

0 comments on commit cde9cc8

Please sign in to comment.