You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sgoldenCS
Based on our conversation, I am now updating the "names" of the columns in the configuration file directly. However, we will need to think of a way to solve the problem when we have a separate file containing the header names of the csv files. There are multiple solutions that we discussed so far:
Manually read the header file in the driver and save the list of header names in the "names" variable. We then update the read_kwargs dictionary with this names variable. Finally, we make the Pandas Parser with the updated read_kwargs. This is the most straightforward way but it requires additional work in the driver itself.
Define a new parser in which I read the header file and save the list "names". Inside that parser I will make your Pandas Parser. Advantage: It is flexible to call whatever Parser version you develop. Disadvantage: I have to define every method that you have in your Parser. It will look something like:
def load_data():
return self.steven_parser.load_data()
Define a new parser that inherits from your defined parser. Advantage: All your methods are now defined. Disadvantage: We are strictly inheriting a specific version. If we want to inherit a new version, we will have to manually change the inherited class to your new version.
The text was updated successfully, but these errors were encountered:
@sgoldenCS
Based on our conversation, I am now updating the "names" of the columns in the configuration file directly. However, we will need to think of a way to solve the problem when we have a separate file containing the header names of the csv files. There are multiple solutions that we discussed so far:
Manually read the header file in the driver and save the list of header names in the "names" variable. We then update the read_kwargs dictionary with this names variable. Finally, we make the Pandas Parser with the updated read_kwargs. This is the most straightforward way but it requires additional work in the driver itself.
Define a new parser in which I read the header file and save the list "names". Inside that parser I will make your Pandas Parser. Advantage: It is flexible to call whatever Parser version you develop. Disadvantage: I have to define every method that you have in your Parser. It will look something like:
def load_data():
return self.steven_parser.load_data()
Define a new parser that inherits from your defined parser. Advantage: All your methods are now defined. Disadvantage: We are strictly inheriting a specific version. If we want to inherit a new version, we will have to manually change the inherited class to your new version.
The text was updated successfully, but these errors were encountered: