We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c933b commit bc61a1dCopy full SHA for bc61a1d
scripts/file_sizes.py
@@ -0,0 +1,25 @@
1
+from pandas import DataFrame
2
+import os
3
+
4
+dirs = []
5
+names = []
6
+lengths = []
7
8
+walked = list(os.walk('pandas'))
9
10
+for directory, _, files in walked:
11
+ print directory
12
+ for path in files:
13
+ if not path.endswith('.py'):
14
+ continue
15
16
+ full_path = os.path.join(directory, path)
17
+ print full_path
18
+ lines = len(open(full_path).readlines())
19
20
+ dirs.append(directory)
21
+ names.append(path)
22
+ lengths.append(lines)
23
24
+result = DataFrame({'dirs' : dirs, 'names' : names,
25
+ 'lengths' : lengths})
0 commit comments