Hi,
When loading my csv via read_csv with this snippet (dtypes setting the "tcp.flags" column to an integer):
dtype=dtypes, converters={ "tcp.flags": lambda x: int(x, 16),
it would generate a warning
data.py:151: ParserWarning: Both a converter and dtype were specified for column tcp.flags - only the converter will be used
so I modified the code to
dtype=dtypes.pop("tcp.flags"), converters={ "tcp.flags": lambda x: int(x, 16),
and so now I get
File "pandas/_libs/parsers.pyx", line 1189, in pandas._libs.parsers.TextReader._convert_tokens
TypeError: Cannot cast array from dtype('float64') to dtype('int64') according to the rule 'safe'
converter or dtype should be used as setting both makes
sense in my scenario. How would you advise me to fix the code so as to have no warning/error ? I guess I can defer the "tcp.flags" column conversion from float to int later but it feels worse than the current way.