Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Pythonic changes #133

Merged
merged 7 commits into from
Mar 25, 2015
Merged

Pythonic changes #133

merged 7 commits into from
Mar 25, 2015

Conversation

gst
Copy link
Contributor

@gst gst commented Mar 25, 2015

Some/few pythonic (mostly obvious) changes.

The greater is the change to dataframe_client, I split it up in 2 files for cleaner separation ; _dataframe_client.py is now in fact the "real"/usable one : it completely assumes that pandas is available. while dataframe_client.py simply wraps it but providing a fallback (as previously) DataFrameClient class which does the same thing (as previously) in case pandas isn't available/usable.

aviau added a commit that referenced this pull request Mar 25, 2015
@aviau aviau merged commit 8d7098e into influxdata:master Mar 25, 2015
@aviau
Copy link
Collaborator

aviau commented Mar 25, 2015

Thank you for contributing :)

@aviau aviau deleted the pythonic branch March 25, 2015 14:46
@gst
Copy link
Contributor Author

gst commented Mar 25, 2015

damn,

+                                for cur_col, field in enumerate(value):
+                                    item[row['columns'][cur_col]] = field
+                                    cur_col += 1

the cur_col += 1 is useless, I'm removing it also..

@gst
Copy link
Contributor Author

gst commented Mar 25, 2015

erf, you already merged, ok no prob doing another pr ;)

@aviau
Copy link
Collaborator

aviau commented Mar 25, 2015

hehe, indeed it is!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy